1--TEST-- 2GH-16054 (Segmentation fault when resizing hash table iterator list while adding) 3--FILE-- 4<?php 5$multi_array = ['zero']; 6$multi_array[] =& $multi_array; 7$it = new RecursiveTreeIterator(new RecursiveArrayIterator($multi_array), 0); 8$counter = 0; 9foreach ($it as $k => $v) { 10 if (++$counter > 200) break; 11} 12echo "ok\n"; 13?> 14--EXPECT-- 15ok 16