php-src/Zend/tests/gc_012.phpt

20 lines
300 B
Plaintext
Raw Normal View History

2008-01-22 09:27:48 +00:00
--TEST--
GC 012: collection of many loops at once
2010-03-03 17:53:15 +00:00
--INI--
zend.enable_gc=1
2008-01-22 09:27:48 +00:00
--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