2
Bug #31926 (php in free() error with RecursiveArrayIterator)
6
$array = array(0 => array('world'));
8
class RecursiveArrayIterator extends ArrayIterator implements
10
function hasChildren() {
11
return (is_array($this->current()));
14
function getChildren() {
15
return new self($this->current());
19
$it = new RecursiveIteratorIterator(new RecursiveArrayIterator($array));
20
foreach($it as $key => $val) {