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 f447a56 commit ae2a70bCopy full SHA for ae2a70b
agent/php_internal_instrument.c
@@ -1603,7 +1603,7 @@ NR_INNER_WRAPPER(memcached_add_servers) {
1603
ZEND_HASH_FOREACH_VAL(Z_ARRVAL_P(servers), server) {
1604
zval* host = nr_php_zend_hash_index_find(Z_ARRVAL_P(server), 0);
1605
zval* port = nr_php_zend_hash_index_find(Z_ARRVAL_P(server), 1);
1606
- if (NULL != host) {
+ if (NULL != host && NULL != port) {
1607
instance = nr_php_memcached_create_datastore_instance(Z_STRVAL_P(host), Z_LVAL_P(port));
1608
nr_php_instrument_datastore_operation(NR_DATASTORE_MEMCACHE,
1609
NULL, instance, true);
0 commit comments