summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRemi Collet <remi@remirepo.net>2021-06-11 17:43:26 +0200
committerRemi Collet <remi@remirepo.net>2021-06-11 17:43:26 +0200
commita487175aa5e1d819f27b98360e8cde96d0110c02 (patch)
tree5847c5707c66bef47547ca296f416c3c4fe65141
parent5bf8b4b9e314d9afaef176bb4f7ddfbc72108f7c (diff)
better patch
-rw-r--r--msgpack-php81.patch66
1 files changed, 66 insertions, 0 deletions
diff --git a/msgpack-php81.patch b/msgpack-php81.patch
index 7538a98..c036e03 100644
--- a/msgpack-php81.patch
+++ b/msgpack-php81.patch
@@ -66,3 +66,69 @@ index 83e8bc7..4717a18 100644
}
$array = array($closure, new Foo());
+
+From be01bccf1ddeeb1ef09722bf869c75c463e22bcb Mon Sep 17 00:00:00 2001
+From: Remi Collet <remi@remirepo.net>
+Date: Fri, 11 Jun 2021 17:36:31 +0200
+Subject: [PATCH] proper implementation for __(un)serializ magic methods
+
+---
+ tests/021.phpt | 4 ++--
+ tests/031.phpt | 4 ++--
+ tests/042.phpt | 4 ++--
+ 3 files changed, 6 insertions(+), 6 deletions(-)
+
+diff --git a/tests/021.phpt b/tests/021.phpt
+index c5cb364..e498382 100644
+--- a/tests/021.phpt
++++ b/tests/021.phpt
+@@ -40,11 +40,11 @@ class Obj implements Serializable {
+ }
+
+ public function __serialize() {
+- return $this->serialize();
++ return [$this->serialize()];
+ }
+
+ public function __unserialize($serialized) {
+- return $this->unserialize();
++ return $this->unserialize($serialized[0]);
+ }
+ }
+
+diff --git a/tests/031.phpt b/tests/031.phpt
+index f178851..f149305 100644
+--- a/tests/031.phpt
++++ b/tests/031.phpt
+@@ -48,11 +48,11 @@ class Obj implements Serializable {
+ }
+
+ public function __serialize() {
+- return $this->serialize();
++ return [$this->serialize()];
+ }
+
+ public function __unserialize($serialized) {
+- return $this->unserialize();
++ return $this->unserialize($serialized[0]);
+ }
+ }
+
+diff --git a/tests/042.phpt b/tests/042.phpt
+index 4717a18..3c71e9d 100644
+--- a/tests/042.phpt
++++ b/tests/042.phpt
+@@ -25,11 +25,11 @@ class Foo implements Serializable {
+ }
+
+ public function __serialize() {
+- return $this->serialize();
++ return [$this->serialize()];
+ }
+
+ public function __unserialize($serialized) {
+- return $this->unserialize();
++ return $this->unserialize($serialized[0]);
+ }
+ }
+