xref: /PHP-8.3/ext/spl/tests/bug32394.phpt (revision f8d79582)
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