1--TEST-- 2GC 032: Crash in GC because of invalid reference counting 3--INI-- 4zend.enable_gc=1 5--FILE-- 6<?php 7$a = array(); 8$b =& $a; 9$a[0] = $a; 10var_dump($a); 11$a = array(array()); 12$b =& $a; 13$a[0][0] = $a; 14var_dump($a); 15?> 16--EXPECT-- 17array(1) { 18 [0]=> 19 array(0) { 20 } 21} 22array(1) { 23 [0]=> 24 array(1) { 25 [0]=> 26 array(1) { 27 [0]=> 28 array(0) { 29 } 30 } 31 } 32} 33