瀏覽代碼

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";