From 60ffb76b339dc92f5adcbe44c8852c27769b2250 Mon Sep 17 00:00:00 2001 From: Remi Collet 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) {