mirror of
https://github.com/php/php-src.git
synced 2024-12-19 15:00:15 +08:00
17 lines
331 B
PHP
17 lines
331 B
PHP
--TEST--
|
|
Bug #60138 (GC crash with referenced array in RecursiveArrayIterator)
|
|
--FILE--
|
|
<?php
|
|
$tree = array(array("f"));
|
|
$category =& $tree[0];
|
|
|
|
$iterator = new RecursiveIteratorIterator(
|
|
new RecursiveArrayIterator($tree),
|
|
RecursiveIteratorIterator::SELF_FIRST
|
|
);
|
|
foreach($iterator as $file);
|
|
echo "ok\n";
|
|
?>
|
|
--EXPECT--
|
|
ok
|