mirror of
https://github.com/php/php-src.git
synced 2024-10-17 06:22:53 +00:00
18 lines
275 B
PHP
18 lines
275 B
PHP
--TEST--
|
|
GC 012: collection of many loops at once
|
|
--FILE--
|
|
<?php
|
|
$a=array();
|
|
for ($i=0; $i < 1000; $i++) {
|
|
$a[$i] = array(array());
|
|
$a[$i][0] = & $a[$i];
|
|
}
|
|
var_dump(gc_collect_cycles());
|
|
unset($a);
|
|
var_dump(gc_collect_cycles());
|
|
echo "ok\n";
|
|
--EXPECT--
|
|
int(0)
|
|
int(1000)
|
|
ok
|