mirror of
https://github.com/phpv8/v8js.git
synced 2024-11-09 23:08:41 +00:00
Merge pull request #50 from stesie/fix-test-for-php53
Make test PHP 5.3 compatible
This commit is contained in:
commit
0319b74250
@ -17,7 +17,8 @@ $JS = <<< EOT
|
|||||||
EOT;
|
EOT;
|
||||||
|
|
||||||
$exports = $v8->executeString($JS, 'basic.js');
|
$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";
|
echo $v8->executeString('PHP.func();')."\n";
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user