php-src/Zend/tests/gc_013.phpt
2010-03-03 17:53:15 +00:00

19 lines
243 B
PHP

--TEST--
GC 013: Too many cycles in one array
--INI--
zend.enable_gc=1
--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