![]() ![]() | ![]() |
1.1 ! misho 1: --TEST-- ! 2: Bug #32394 (offsetUnset() segfaults in a foreach) ! 3: --FILE-- ! 4: <?php ! 5: ! 6: $object = new ArrayIterator; ! 7: $object->append(1); ! 8: ! 9: foreach($object as $key => $value) ! 10: { ! 11: $object->offsetUnset($key); ! 12: } ! 13: ! 14: ?> ! 15: ===DONE=== ! 16: --EXPECT-- ! 17: ===DONE===