mirror of
https://github.com/php/php-src.git
synced 2024-10-02 23:36:16 +00:00
17 lines
331 B
Plaintext
17 lines
331 B
Plaintext
|
--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
|