com php-src: Fix gc_032.phpt: Zend/tests/gc_0 32.phpt

From: Date: Fri, 13 Oct 2017 09:59:28 +0000
Subject: com php-src: Fix gc_032.phpt: Zend/tests/gc_0 32.phpt
Groups: php.cvs 
Request: Send a blank email to php-cvs+get-99727@lists.php.net to get a copy of this message
Commit: e688d1df9924603b7538065df278d2b35456ea10 Author: Nikita Popov <nikita.ppv@gmail.com> Fri, 13 Oct 2017 11:59:28 +0200 Parents: 7a23c575f21dfe423b2daf9701457705e8ae53ac Branches: master Link: http://git.php.net/?p=php-src.git;a=commitdiff;h=e688d1df9924603b7538065df278d2b35456ea10 Log: 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. Changed paths: M Zend/tests/gc_032.phpt Diff: diff --git a/Zend/tests/gc_032.phpt b/Zend/tests/gc_032.phpt index d0d36b2..90c30f7 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) { } } }

« previous php.cvs (#99727) next »