php-src/ext/spl/tests/bug31926.phpt
Marcus Boerger 445e382454 - Move RecursiveArrayIterator into .c
- Add ability to control iterator class of ArrayObject
- Implement option to make CachingIterator cache all read elements
- Implement ArrayAccess to CachingIterator to access cached elements
- Update docu
- Update tests
2005-09-18 11:34:36 +00:00

20 lines
333 B
PHP
Executable File

--TEST--
Bug #31926 (php in free() error with RecursiveArrayIterator)
--FILE--
<?php
$array = array(0 => array('world'));
$it = new RecursiveIteratorIterator(new RecursiveArrayIterator($array));
foreach($it as $key => $val) {
var_dump($key, $val);
}
?>
--EXPECT--
int(0)
string(5) "world"
--UEXPECT--
int(0)
unicode(5) "world"