We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 89d2937 commit 90da3b7Copy full SHA for 90da3b7
agent/lib_php_amqplib.c
@@ -190,7 +190,7 @@ static inline void nr_php_amqplib_get_host_and_port(
190
191
amqp_port = nr_php_zend_hash_index_find(
192
Z_ARRVAL_P(connect_constructor_params), AMQP_CONSTRUCT_PARAMS_PORT_INDEX);
193
- if (IS_LONG == Z_TYPE_P((amqp_port))) {
+ if (nr_php_is_zval_valid_integer(amqp_port)) {
194
message_params->server_port = Z_LVAL_P(amqp_port);
195
}
196
0 commit comments