blob: 2d72df421dea7724f1abd3c65e2d9a999af6e000 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
|
--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"
|