mirror of
https://github.com/php/php-src.git
synced 2024-11-24 10:24:11 +08:00
17 lines
218 B
PHP
17 lines
218 B
PHP
--TEST--
|
|
GC 013: Too many cycles in one array
|
|
--FILE--
|
|
<?php
|
|
$a = array();
|
|
for ($i = 0; $i < 10001; $i++) {
|
|
$a[$i] =& $a;
|
|
}
|
|
$a[] = "xxx";
|
|
unset($a);
|
|
var_dump(gc_collect_cycles());
|
|
echo "ok\n";
|
|
?>
|
|
--EXPECT--
|
|
int(2)
|
|
ok
|