Sfoglia il codice sorgente

Make test PHP 5.3 compatible

Stefan Siegl 11 anni fa
parent
commit
4f3cbd412b
1 ha cambiato i file con 2 aggiunte e 1 eliminazioni
  1. 2 1
      tests/function_passback.phpt

+ 2 - 1
tests/function_passback.phpt

@@ -17,7 +17,8 @@ $JS = <<< EOT
 EOT;
 
 $exports = $v8->executeString($JS, 'basic.js');
-$v8->func = get_object_vars( $exports )['hello'];
+$vars = get_object_vars($exports);
+$v8->func = $vars['hello'];
 
 echo $v8->executeString('PHP.func();')."\n";