From a8bdff699876523b1092d2af907f1e9569fbd201 Mon Sep 17 00:00:00 2001 From: SVN Migration Date: Mon, 24 Jan 2005 21:27:37 +0000 Subject: [PATCH] This commit was manufactured by cvs2svn to create branch 'PHP_5_0'. --- ext/spl/tests/bug31346.phpt | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100755 ext/spl/tests/bug31346.phpt diff --git a/ext/spl/tests/bug31346.phpt b/ext/spl/tests/bug31346.phpt new file mode 100755 index 0000000000..9b5618ec0e --- /dev/null +++ b/ext/spl/tests/bug31346.phpt @@ -0,0 +1,19 @@ +--TEST-- +Bug #31486 (ArrayIterator::next segfaults) +--FILE-- +var1=1; + +$ao = new ArrayObject($obj); + +$i = $ao->getIterator(); + +$ao->offsetUnset($i->key()); +$i->next(); + +?> +===DONE=== +--EXPECTF-- +Notice: ArrayIterator::next(): Array was modified outside object and internal position is no longer valid in %sbug31346.php on line %d +===DONE=== -- 2.40.0