소스 검색

Merge pull request #50 from stesie/fix-test-for-php53

Make test PHP 5.3 compatible
Patrick Reilly 12 년 전
부모
커밋
0319b74250
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";