mirror of
https://github.com/php/php-src.git
synced 2024-12-12 11:23:53 +08:00
388624d359
and they will leak and cause failures unless gc is enabled
27 lines
260 B
PHP
27 lines
260 B
PHP
--TEST--
|
|
Testing each() with recursion
|
|
--INI--
|
|
zend.enable_gc=1
|
|
--FILE--
|
|
<?php
|
|
|
|
$a = array(array());
|
|
$a[] =& $a;
|
|
|
|
var_dump(each($a[1]));
|
|
|
|
?>
|
|
--EXPECTF--
|
|
array(4) {
|
|
[1]=>
|
|
array(0) {
|
|
}
|
|
["value"]=>
|
|
array(0) {
|
|
}
|
|
[0]=>
|
|
int(0)
|
|
["key"]=>
|
|
int(0)
|
|
}
|