Annotation of embedaddon/php/ext/spl/tests/bug31346.phpt, revision 1.1
1.1 ! misho 1: --TEST--
! 2: Bug #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: Notice: ArrayIterator::next(): Array was modified outside object and internal position is no longer valid in %sbug31346.php on line %d
! 19: ===DONE===
FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>