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

19 lines
258 B
PHP

--TEST--
GC 014: Too many cycles in one object
--FILE--
<?php
$a = new stdClass();
for ($i = 0; $i < 10001; $i++) {
$b =& $a;
$a->{"a".$i} = $a;
}
unset($b);
$a->b = "xxx";
unset($a);
var_dump(gc_collect_cycles());
echo "ok\n";
?>
--EXPECT--
int(10002)
ok