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-- 18Notice: ArrayIterator::next(): Array was modified outside object and internal position is no longer valid in %sbug31346.php on line %d 19===DONE=== 20