php-src/Zend/tests/gc_013.phpt
Ilia Alshanetsky 4534cd6807 WS
2008-04-09 23:35:19 +00:00

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