2010-09-30 22:11:51 +08:00
|
|
|
--TEST--
|
|
|
|
GC 032: Crash in GC because of invalid reference counting
|
2015-01-25 08:05:42 +08:00
|
|
|
--INI--
|
|
|
|
zend.enable_gc=1
|
2010-09-30 22:11:51 +08:00
|
|
|
--FILE--
|
|
|
|
<?php
|
|
|
|
$a = array();
|
|
|
|
$b =& $a;
|
|
|
|
$a[0] = $a;
|
|
|
|
debug_zval_dump($a);
|
|
|
|
$a = array(array());
|
|
|
|
$b =& $a;
|
|
|
|
$a[0][0] = $a;
|
|
|
|
debug_zval_dump($a);
|
|
|
|
?>
|
2014-06-04 13:57:17 +08:00
|
|
|
--EXPECTF--
|
|
|
|
array(1) refcount(%d){
|
2010-09-30 22:11:51 +08:00
|
|
|
[0]=>
|
2014-06-04 13:57:17 +08:00
|
|
|
array(1) refcount(%d){
|
2010-09-30 22:11:51 +08:00
|
|
|
[0]=>
|
2014-06-04 13:57:17 +08:00
|
|
|
array(1) refcount(%d){
|
2010-09-30 22:11:51 +08:00
|
|
|
[0]=>
|
|
|
|
*RECURSION*
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
2014-06-04 13:57:17 +08:00
|
|
|
array(1) refcount(%d){
|
2010-09-30 22:11:51 +08:00
|
|
|
[0]=>
|
2014-06-04 13:57:17 +08:00
|
|
|
array(1) refcount(%d){
|
2010-09-30 22:11:51 +08:00
|
|
|
[0]=>
|
2014-06-04 13:57:17 +08:00
|
|
|
array(1) refcount(%d){
|
2010-09-30 22:11:51 +08:00
|
|
|
[0]=>
|
2014-06-04 13:57:17 +08:00
|
|
|
array(1) refcount(%d){
|
2010-09-30 22:11:51 +08:00
|
|
|
[0]=>
|
2014-06-04 13:57:17 +08:00
|
|
|
array(1) refcount(%d){
|
2010-09-30 22:11:51 +08:00
|
|
|
[0]=>
|
|
|
|
*RECURSION*
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|