From: Nikita Popov Date: Fri, 13 Oct 2017 09:59:28 +0000 (+0200) Subject: Fix gc_032.phpt X-Git-Tag: php-7.3.0alpha1~1280 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=e688d1df9924603b7538065df278d2b35456ea10;p=php 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. --- diff --git a/Zend/tests/gc_032.phpt b/Zend/tests/gc_032.phpt index d0d36b2b35..90c30f7c16 100644 --- a/Zend/tests/gc_032.phpt +++ b/Zend/tests/gc_032.phpt @@ -7,25 +7,25 @@ zend.enable_gc=1 $a = array(); $b =& $a; $a[0] = $a; -debug_zval_dump($a); +var_dump($a); $a = array(array()); $b =& $a; $a[0][0] = $a; -debug_zval_dump($a); +var_dump($a); ?> ---EXPECTF-- -array(1) refcount(2){ +--EXPECT-- +array(1) { [0]=> - array(0) refcount(1){ + array(0) { } } -array(1) refcount(2){ +array(1) { [0]=> - array(1) refcount(1){ + array(1) { [0]=> - array(1) refcount(1){ + array(1) { [0]=> - array(0) refcount(1){ + array(0) { } } }