xref: /PHP-7.0/ext/spl/tests/bug31346.phpt (revision 2b6a568d)
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--EXPECTF--
18===DONE===
19