summaryrefslogtreecommitdiff
path: root/ext/spl/tests/bug31346.phpt
blob: e3bf51f57fbf4bb22e273a1595cc9fc645fab72e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
--TEST--
Bug #31486 (ArrayIterator::next segfaults)
--FILE--
<?php
$obj = new stdClass;
$obj->var1=1;

$ao = new ArrayObject($obj);

$i = $ao->getIterator();

$ao->offsetUnset($i->key());
$i->next();

?>
===DONE===
--EXPECTF--
===DONE===