Skip to content

Commit

Permalink
fix(agent): use zval is integer function
Browse files Browse the repository at this point in the history
  • Loading branch information
zsistla committed Feb 6, 2025
1 parent 89d2937 commit 90da3b7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion agent/lib_php_amqplib.c
Original file line number Diff line number Diff line change
Expand Up @@ -190,7 +190,7 @@ static inline void nr_php_amqplib_get_host_and_port(

amqp_port = nr_php_zend_hash_index_find(
Z_ARRVAL_P(connect_constructor_params), AMQP_CONSTRUCT_PARAMS_PORT_INDEX);
if (IS_LONG == Z_TYPE_P((amqp_port))) {
if (nr_php_is_zval_valid_integer(amqp_port)) {
message_params->server_port = Z_LVAL_P(amqp_port);
}
}
Expand Down

0 comments on commit 90da3b7

Please sign in to comment.