0
0
mirror of https://github.com/phpv8/v8js.git synced 2024-11-09 00:28:40 +00:00
phpv8/tests/regression_121.phpt

26 lines
412 B
Plaintext
Raw Normal View History

--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===