php-src/Zend/tests/gc_012.phpt
2020-02-03 22:52:20 +01:00

20 lines
306 B
PHP

--TEST--
GC 012: collection of many loops at once
--INI--
zend.enable_gc=1
--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