0
0
mirror of https://github.com/phpv8/v8js.git synced 2024-12-24 02:21:51 +00:00
phpv8/tests/array_recursive.phpt

26 lines
338 B
Plaintext
Raw Normal View History

--TEST--
Test V8::executeString() : export of recursive array
--SKIPIF--
<?php require_once(dirname(__FILE__) . '/skipif.inc'); ?>
--FILE--
<?php
$a = [];
$a[] = &$a;
$a[] = 23;
$v8 = new V8Js();
$v8->foo = $a;
$v8->executeString('var_dump(PHP.foo);');
?>
===EOF===
--EXPECT--
array(2) {
[0] =>
NULL
[1] =>
int(23)
}
===EOF===