cvs: php-src /ext/spl/tests bug31346.phpt
| From: | Marcus Boerger | Date: | Mon, 24 Jan 2005 21:27:36 +0000 |
| Subject: | cvs: php-src /ext/spl/tests bug31346.phpt | ||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-30110@lists.php.net to get a copy of this message | ||
helly Mon Jan 24 16:27:36 2005 EDT
Added files:
/php-src/ext/spl/tests bug31346.phpt
Log:
- Bugfix #31346
http://cvs.php.net/co.php/php-src/ext/spl/tests/bug31346.phpt?r=1.1&p=1
Index: php-src/ext/spl/tests/bug31346.phpt
+++ php-src/ext/spl/tests/bug31346.phpt
--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--
Notice: ArrayIterator::next(): Array was modified outside object and internal position is no longer
valid in %sbug31346.php on line %d
===DONE===