php-src/ext/spl/tests/bug32394.phpt
2005-12-21 22:21:54 +00:00

20 lines
294 B
PHP
Executable File

--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===