0
0
mirror of https://github.com/phpv8/v8js.git synced 2024-09-16 18:05:18 +00:00

Make test PHP 5.3 compatible

This commit is contained in:
Stefan Siegl 2013-10-07 14:55:01 +02:00
parent 8862498a10
commit 4f3cbd412b

View File

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