0
0
mirror of https://github.com/phpv8/v8js.git synced 2024-09-16 18:05:18 +00:00
phpv8/tests/array_recursive.phpt
2018-07-13 15:52:41 +02:00

26 lines
338 B
PHP

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