1--TEST-- 2GC 007: Unreferenced array cycle 3--INI-- 4zend.enable_gc=1 5--FILE-- 6<?php 7$a = array(array()); 8$a[0][0] =& $a[0]; 9var_dump($a[0]); 10var_dump(gc_collect_cycles()); 11unset($a); 12var_dump(gc_collect_cycles()); 13echo "ok\n" 14?> 15--EXPECT-- 16array(1) { 17 [0]=> 18 &array(1) { 19 [0]=> 20 *RECURSION* 21 } 22} 23int(0) 24int(1) 25ok 26