summaryrefslogtreecommitdiffstats
path: root/ion-php84.patch
blob: fef1c36403bfb64ce9719e7b4d538f816fdc7410 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
From fc5e95874bc8c56c398399b85f17663919c8e904 Mon Sep 17 00:00:00 2001
From: Remi Collet <remi@remirepo.net>
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..44ce077 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) %srefcount(2){
   [0]=>
-  array(1) refcount(2){
+  array(1) %srefcount(2){
     [0]=>
     reference refcount(1) {
       *RECURSION*
     }
   }
   [1]=>
-  array(6) refcount(2){
+  array(6) %srefcount(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) %srefcount(3){
       [0]=>
       int(1)
       [1]=>
@@ -60,7 +60,7 @@ array(6) refcount(2){
       int(3)
     }
     [5]=>
-    array(3) refcount(3){
+    array(3) %srefcount(3){
       [0]=>
       int(1)
       [1]=>
@@ -70,7 +70,7 @@ array(6) refcount(2){
     }
   }
   [2]=>
-  array(6) refcount(2){
+  array(6) %srefcount(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) %srefcount(3){
       [0]=>
       int(1)
       [1]=>
@@ -91,7 +91,7 @@ array(6) refcount(2){
       int(3)
     }
     [5]=>
-    array(3) refcount(3){
+    array(3) %srefcount(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) %srefcount(3){
     [0]=>
     int(1)
     [1]=>
diff --git a/tests/serialize/serializable.phpt b/tests/serialize/serializable.phpt
index 5f66227..aa93347 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) %srefcount(2){
   [0]=>
   object(test)#%d (1) refcount(2){
     ["data":protected]=>