summaryrefslogtreecommitdiff
path: root/ext/spl/tests/bug32394.phpt
blob: 8189b23f7a97d003df0a131e3c5eecd53ba9f14a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
--TEST--
Bug #32394 (offsetUnset() segfaults in a foreach)
--FILE--
<?php

$object = new ArrayIterator;
$object->append(1);

foreach($object as $key => $value)
{
	$object->offsetUnset($key);
}

?>
===DONE===
--EXPECT--
===DONE===