Return to gc_010.phpt CVS log | Up to [ELWIX - Embedded LightWeight unIX -] / embedaddon / php / Zend / tests |
1.1 misho 1: --TEST-- 2: GC 010: Cycle with reference to $GLOBALS 3: --INI-- 4: zend.enable_gc=1 5: --FILE-- 6: <?php 7: $a = array(); 8: $a[] =& $a; 9: var_dump($a); 10: $a[] =& $GLOBALS; 11: unset($a); 12: var_dump(gc_collect_cycles()); 13: echo "ok\n" 14: ?> 15: --EXPECT-- 16: array(1) { 17: [0]=> 18: &array(1) { 19: [0]=> 20: *RECURSION* 21: } 22: } 23: int(1) 24: ok