summaryrefslogtreecommitdiff
path: root/ext/spl/tests/bug32394.phpt
blob: ac72e0fa163ca46b4841eaeae5d7059f89e34063 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
--TEST--
Bug #32394 (offsetUnset() segfaults in a foreach)
--SKIPIF--
<?php if (!extension_loaded("spl")) print "skip"; ?>
--FILE--
<?php

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

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

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