blob: 0d705e35a60815654d0fe01d2b14568816c769ba (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
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) {
|