php-src/Zend/tests/gc_013.phpt
2008-01-22 09:29:29 +00:00

17 lines
219 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