summaryrefslogtreecommitdiff
path: root/Zend/tests/gc_012.phpt
blob: eff76ef31c1816dd2eba1219b9e8ebd64ce15b3f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
--TEST--
GC 012: collection of many loops at once
--FILE--
<?php
$a=array();
for ($i=0; $i < 1000; $i++) {
	$a[$i] = array(array());
	$a[$i][0] = & $a[$i];
}
var_dump(gc_collect_cycles());
unset($a);
var_dump(gc_collect_cycles());
echo "ok\n";
--EXPECT--
int(0)
int(1000)
ok