From e688d1df9924603b7538065df278d2b35456ea10 Mon Sep 17 00:00:00 2001 From: Nikita Popov Date: Fri, 13 Oct 2017 11:59:28 +0200 Subject: [PATCH] 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. --- Zend/tests/gc_032.phpt | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) 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) { } } } -- 2.40.0