Annotation of embedaddon/php/Zend/tests/gc_032.phpt, revision 1.1
1.1 ! misho 1: --TEST--
! 2: GC 032: Crash in GC because of invalid reference counting
! 3: --FILE--
! 4: <?php
! 5: $a = array();
! 6: $b =& $a;
! 7: $a[0] = $a;
! 8: debug_zval_dump($a);
! 9: $a = array(array());
! 10: $b =& $a;
! 11: $a[0][0] = $a;
! 12: debug_zval_dump($a);
! 13: ?>
! 14: --EXPECT--
! 15: array(1) refcount(1){
! 16: [0]=>
! 17: array(1) refcount(3){
! 18: [0]=>
! 19: array(1) refcount(3){
! 20: [0]=>
! 21: *RECURSION*
! 22: }
! 23: }
! 24: }
! 25: array(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: }
FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>