xref: /PHP-8.0/ext/spl/tests/bug31346.phpt (revision ded3d984)
1--TEST--
2Bug #31486 (ArrayIterator::next segfaults)
3--FILE--
4<?php
5$obj = new stdClass;
6$obj->var1=1;
7
8$ao = new ArrayObject($obj);
9
10$i = $ao->getIterator();
11
12$ao->offsetUnset($i->key());
13$i->next();
14
15?>
16===DONE===
17--EXPECT--
18===DONE===
19