mirror of
https://github.com/php/php-src.git
synced 2024-12-03 14:54:40 +08:00
18 lines
230 B
PHP
Executable File
18 lines
230 B
PHP
Executable File
--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===
|