From a943cb87d31bf6471b30211937e1606a9a335773 Mon Sep 17 00:00:00 2001 From: Remi Collet Date: Tue, 1 Oct 2024 09:18:00 +0200 Subject: [PATCH] Relax test for 8.4 "refcount" vs "packed refcount" --- tests/serialize/backref.phpt | 18 +++++++++--------- tests/serialize/serializable.phpt | 2 +- 2 files changed, 10 insertions(+), 10 deletions(-) diff --git a/tests/serialize/backref.phpt b/tests/serialize/backref.phpt index 4538ab5..43fb1e2 100644 --- a/tests/serialize/backref.phpt +++ b/tests/serialize/backref.phpt @@ -30,16 +30,16 @@ array(1) { *RECURSION* } [[R::r::1],["a",r::4,o::{},r::5,[1,2,3],r::6],r::3,r::4,r::5,r::6] -array(6) refcount(2){ +array(6) %sefcount(2){ [0]=> - array(1) refcount(2){ + array(1) %sefcount(2){ [0]=> reference refcount(1) { *RECURSION* } } [1]=> - array(6) refcount(2){ + array(6) %sefcount(2){ [0]=> string(1) "a" refcount(3) [1]=> @@ -51,7 +51,7 @@ array(6) refcount(2){ object(stdClass)#%d (0) refcount(3){ } [4]=> - array(3) refcount(3){ + array(3) %sefcount(3){ [0]=> int(1) [1]=> @@ -60,7 +60,7 @@ array(6) refcount(2){ int(3) } [5]=> - array(3) refcount(3){ + array(3) %sefcount(3){ [0]=> int(1) [1]=> @@ -70,7 +70,7 @@ array(6) refcount(2){ } } [2]=> - array(6) refcount(2){ + array(6) %sefcount(2){ [0]=> string(1) "a" refcount(3) [1]=> @@ -82,7 +82,7 @@ array(6) refcount(2){ object(stdClass)#%d (0) refcount(3){ } [4]=> - array(3) refcount(3){ + array(3) %sefcount(3){ [0]=> int(1) [1]=> @@ -91,7 +91,7 @@ array(6) refcount(2){ int(3) } [5]=> - array(3) refcount(3){ + array(3) %sefcount(3){ [0]=> int(1) [1]=> @@ -106,7 +106,7 @@ array(6) refcount(2){ object(stdClass)#%d (0) refcount(3){ } [5]=> - array(3) refcount(3){ + array(3) %sefcount(3){ [0]=> int(1) [1]=> diff --git a/tests/serialize/serializable.phpt b/tests/serialize/serializable.phpt index 5f66227..6a26af0 100644 --- a/tests/serialize/serializable.phpt +++ b/tests/serialize/serializable.phpt @@ -85,7 +85,7 @@ Deprecated: recursive implements the Serializable interface, which is deprecated Deprecated: except implements the Serializable interface, which is deprecated. Implement __serialize() and __unserialize() instead (or in addition, if support for old PHP versions is necessary) in %sserialize/serializable.php on line %d [S::test::{{"foobar"}},r::1] -array(2) refcount(2){ +array(2) %sefcount(2){ [0]=> object(test)#%d (1) refcount(2){ ["data":protected]=> -- 2.47.0