xref: /PHP-7.0/ext/spl/tests/bug32394.phpt (revision 610c7fbe)
1--TEST--
2Bug #32394 (offsetUnset() segfaults in a foreach)
3--FILE--
4<?php
5
6$object = new ArrayIterator;
7$object->append(1);
8
9foreach($object as $key => $value)
10{
11	$object->offsetUnset($key);
12}
13
14?>
15===DONE===
16--EXPECT--
17===DONE===
18