summaryrefslogtreecommitdiffstats
path: root/amqp-pr455.patch
diff options
context:
space:
mode:
Diffstat (limited to 'amqp-pr455.patch')
-rw-r--r--amqp-pr455.patch22
1 files changed, 22 insertions, 0 deletions
diff --git a/amqp-pr455.patch b/amqp-pr455.patch
new file mode 100644
index 0000000..0d705e3
--- /dev/null
+++ b/amqp-pr455.patch
@@ -0,0 +1,22 @@
+From 60ffb76b339dc92f5adcbe44c8852c27769b2250 Mon Sep 17 00:00:00 2001
+From: Remi Collet <remi@remirepo.net>
+Date: Thu, 3 Aug 2023 07:41:46 +0200
+Subject: [PATCH] Fix #454 segfault in setPort
+
+---
+ amqp_connection.c | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+diff --git a/amqp_connection.c b/amqp_connection.c
+index 40c2859d..d8f71b12 100644
+--- a/amqp_connection.c
++++ b/amqp_connection.c
+@@ -1165,7 +1165,7 @@ static PHP_METHOD(amqp_connection_class, getPort)
+ set the port */
+ static PHP_METHOD(amqp_connection_class, setPort)
+ {
+- int port;
++ zend_long port;
+
+ /* Get the port from the method params */
+ if (zend_parse_parameters(ZEND_NUM_ARGS(), "l", &port) == FAILURE) {