Преглед изворни кода

Make test PHP 5.3 compatible

Stefan Siegl пре 11 година
родитељ
комит
4f3cbd412b
1 измењених фајлова са 2 додато и 1 уклоњено
  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";