summaryrefslogtreecommitdiff
path: root/Zend/tests/gc_013.phpt
blob: ddfa0e6ba53a5f09f817178e0d5a116990e69574 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
--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