bug60138.phpt 331 B

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