1--TEST-- 2GC 032: Crash in GC because of invalid reference counting 3--FILE-- 4<?php 5$a = array(); 6$b =& $a; 7$a[0] = $a; 8debug_zval_dump($a); 9$a = array(array()); 10$b =& $a; 11$a[0][0] = $a; 12debug_zval_dump($a); 13?> 14--EXPECT-- 15array(1) refcount(1){ 16 [0]=> 17 array(1) refcount(3){ 18 [0]=> 19 array(1) refcount(3){ 20 [0]=> 21 *RECURSION* 22 } 23 } 24} 25array(1) refcount(1){ 26 [0]=> 27 array(1) refcount(3){ 28 [0]=> 29 array(1) refcount(1){ 30 [0]=> 31 array(1) refcount(3){ 32 [0]=> 33 array(1) refcount(1){ 34 [0]=> 35 *RECURSION* 36 } 37 } 38 } 39 } 40} 41