xref: /PHP-5.5/Zend/tests/bug60138.phpt (revision f7278c16)
1--TEST--
2Bug #60138 (GC crash with referenced array in RecursiveArrayIterator)
3--FILE--
4<?php
5$tree = array(array("f"));
6$category =& $tree[0];
7
8$iterator = new RecursiveIteratorIterator(
9    new RecursiveArrayIterator($tree),
10    RecursiveIteratorIterator::SELF_FIRST
11);
12foreach($iterator as $file);
13echo "ok\n";
14?>
15--EXPECT--
16ok
17