mirror of
https://github.com/php/php-src.git
synced 2024-12-04 23:34:25 +08:00
17 lines
295 B
PHP
17 lines
295 B
PHP
--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"
|