summaryrefslogtreecommitdiffstats
path: root/595.patch
diff options
context:
space:
mode:
Diffstat (limited to '595.patch')
-rw-r--r--595.patch39
1 files changed, 37 insertions, 2 deletions
diff --git a/595.patch b/595.patch
index ce190d9..f274a41 100644
--- a/595.patch
+++ b/595.patch
@@ -1,7 +1,7 @@
From 789de276603ca54cf85c958bf996c4faedf73223 Mon Sep 17 00:00:00 2001
From: Remi Collet <remi@remirepo.net>
Date: Fri, 4 Jul 2025 12:13:08 +0200
-Subject: [PATCH 1/2] Use php_format_date instead of php_std_date
+Subject: [PATCH 1/3] Use php_format_date instead of php_std_date
- php_format_date exists in 7.4+
- php_std_date removed in 8.5
@@ -66,7 +66,7 @@ index 8809a20b..eaf857e7 100644
From 32c799b2f4182e4d7f2ef99cdbd9df3d6f0c2678 Mon Sep 17 00:00:00 2001
From: Remi Collet <remi@remirepo.net>
Date: Tue, 15 Jul 2025 14:50:40 +0200
-Subject: [PATCH 2/2] use zend_ce_exception
+Subject: [PATCH 2/3] use zend_ce_exception
---
amqp.c | 2 +-
@@ -99,3 +99,38 @@ index eeeec3df..48287fa1 100644
PHP_AMQP_COMPAT_OBJ_P(&exception),
ZEND_STRL("message"),
"Orphaned envelope"
+
+From 977449987412a3d5c59a036dbab8b6d67764bb3e Mon Sep 17 00:00:00 2001
+From: Remi Collet <remi@remirepo.net>
+Date: Mon, 29 Sep 2025 07:49:28 +0200
+Subject: [PATCH 3/3] Silent the "not representable as an int" warning
+
+---
+ tests/amqpconnection_validation.phpt | 9 +++++++--
+ 1 file changed, 7 insertions(+), 2 deletions(-)
+
+diff --git a/tests/amqpconnection_validation.phpt b/tests/amqpconnection_validation.phpt
+index 9f67cf67..bb1790c0 100644
+--- a/tests/amqpconnection_validation.phpt
++++ b/tests/amqpconnection_validation.phpt
+@@ -26,7 +26,12 @@ foreach ($parameters as $args) {
+ list($prop, $setter, $getter, $values) = $args;
+ foreach ($values as $value) {
+ try {
+- $con1 = new AMQPConnection([$prop => $value]);
++ if (in_array($prop, ['frame_max', 'heartbeat'])) {
++ // Silent the "not representable as an int" warning
++ $con1 = @new AMQPConnection([$prop => $value]);
++ } else {
++ $con1 = new AMQPConnection([$prop => $value]);
++ }
+ echo $getter . " after constructor: ";
+ echo $con1->{$getter}();
+ echo PHP_EOL;
+@@ -109,4 +114,4 @@ AMQPConnectionException: Parameter 'heartbeat' is out of range.
+ AMQPConnectionException: Parameter 'heartbeat' is out of range.
+ getHeartbeatInterval after constructor: 250
+ getHeartbeatInterval after constructor: 0
+-==DONE==
+\ No newline at end of file
++==DONE==