From 0694a7409f4ddfba24283ecfbda2ec3670e0cf50 Mon Sep 17 00:00:00 2001 From: Pavel Golovin Date: Wed, 4 Jul 2018 14:50:07 +0300 Subject: [PATCH 1/2] Update GenericContent.php --- PhpAmqpLib/Wire/GenericContent.php | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/PhpAmqpLib/Wire/GenericContent.php b/PhpAmqpLib/Wire/GenericContent.php index 8ab2cf449..246159fe5 100644 --- a/PhpAmqpLib/Wire/GenericContent.php +++ b/PhpAmqpLib/Wire/GenericContent.php @@ -102,6 +102,10 @@ public function set($name, $value) $name )); } + + if ($this->properties[$name] !== $value) { + $this->serialized_properties = null; + } $this->properties[$name] = $value; } From a160694a72645ddbf1c54dac357c9a1dcdd1723f Mon Sep 17 00:00:00 2001 From: Pavel Golovin Date: Wed, 4 Jul 2018 15:47:56 +0300 Subject: [PATCH 2/2] Update GenericContent.php --- PhpAmqpLib/Wire/GenericContent.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/PhpAmqpLib/Wire/GenericContent.php b/PhpAmqpLib/Wire/GenericContent.php index 246159fe5..86b28b38c 100644 --- a/PhpAmqpLib/Wire/GenericContent.php +++ b/PhpAmqpLib/Wire/GenericContent.php @@ -103,7 +103,7 @@ public function set($name, $value) )); } - if ($this->properties[$name] !== $value) { + if (isset($this->properties[$name]) && $this->properties[$name] !== $value || !isset($this->properties[$name])) { $this->serialized_properties = null; }