mirror of
https://github.com/phpv8/v8js.git
synced 2024-12-22 21:51:51 +00:00
26 lines
412 B
Plaintext
26 lines
412 B
Plaintext
|
--TEST--
|
||
|
Test V8::executeString() : Regression #121 Z_ADDREF_P
|
||
|
--SKIPIF--
|
||
|
<?php require_once(dirname(__FILE__) . '/skipif.inc'); ?>
|
||
|
--FILE--
|
||
|
<?php
|
||
|
|
||
|
$v8 = new V8Js();
|
||
|
$v8->blar = new stdClass();
|
||
|
|
||
|
$js = <<<EOT
|
||
|
PHP.blar.blub = {}
|
||
|
PHP.blar.blub['foo'] = 23;
|
||
|
PHP.blar.blub['bar'] = 5;
|
||
|
PHP.blar.blub['baz'] = 42;
|
||
|
|
||
|
print("Hello World!\\n");
|
||
|
EOT;
|
||
|
|
||
|
$v8->executeString($js);
|
||
|
?>
|
||
|
===EOF===
|
||
|
--EXPECT--
|
||
|
Hello World!
|
||
|
===EOF===
|