Annotation of embedaddon/php/Zend/tests/gc_012.phpt, revision 1.1
1.1 ! misho 1: --TEST--
! 2: GC 012: collection of many loops at once
! 3: --INI--
! 4: zend.enable_gc=1
! 5: --FILE--
! 6: <?php
! 7: $a=array();
! 8: for ($i=0; $i < 1000; $i++) {
! 9: $a[$i] = array(array());
! 10: $a[$i][0] = & $a[$i];
! 11: }
! 12: var_dump(gc_collect_cycles());
! 13: unset($a);
! 14: var_dump(gc_collect_cycles());
! 15: echo "ok\n";
! 16: --EXPECT--
! 17: int(0)
! 18: int(1000)
! 19: ok
FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>