php-src/Zend/tests/gc_032.phpt
Nikita Popov e688d1df99 Fix gc_032.phpt
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.
2017-10-13 11:59:28 +02:00

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) {
}
}
}
}