mirror of
https://github.com/php/php-src.git
synced 2024-12-02 22:34:55 +08:00
e688d1df99
Use var_dump instead of debug_zval_dump. The refcounts are not important for this test and change depending on whether opcache is loaded or not.
33 lines
375 B
PHP
33 lines
375 B
PHP
--TEST--
|
|
GC 032: Crash in GC because of invalid reference counting
|
|
--INI--
|
|
zend.enable_gc=1
|
|
--FILE--
|
|
<?php
|
|
$a = array();
|
|
$b =& $a;
|
|
$a[0] = $a;
|
|
var_dump($a);
|
|
$a = array(array());
|
|
$b =& $a;
|
|
$a[0][0] = $a;
|
|
var_dump($a);
|
|
?>
|
|
--EXPECT--
|
|
array(1) {
|
|
[0]=>
|
|
array(0) {
|
|
}
|
|
}
|
|
array(1) {
|
|
[0]=>
|
|
array(1) {
|
|
[0]=>
|
|
array(1) {
|
|
[0]=>
|
|
array(0) {
|
|
}
|
|
}
|
|
}
|
|
}
|