Skip to content

Commit 90da3b7

Browse files
committedFeb 6, 2025·
fix(agent): use zval is integer function
1 parent 89d2937 commit 90da3b7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed
 

‎agent/lib_php_amqplib.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -190,7 +190,7 @@ static inline void nr_php_amqplib_get_host_and_port(
190190

191191
amqp_port = nr_php_zend_hash_index_find(
192192
Z_ARRVAL_P(connect_constructor_params), AMQP_CONSTRUCT_PARAMS_PORT_INDEX);
193-
if (IS_LONG == Z_TYPE_P((amqp_port))) {
193+
if (nr_php_is_zval_valid_integer(amqp_port)) {
194194
message_params->server_port = Z_LVAL_P(amqp_port);
195195
}
196196
}

0 commit comments

Comments
 (0)
Please sign in to comment.