Skip to content

Commit

Permalink
Fix port number in getVersion (php-memcached-dev#300) (390)
Browse files Browse the repository at this point in the history
  • Loading branch information
sodabrew authored Jan 23, 2017
1 parent 493d691 commit 2af9b61
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion php_memcached.c
Original file line number Diff line number Diff line change
Expand Up @@ -3353,7 +3353,7 @@ memcached_return s_server_cursor_version_cb(const memcached_st *ptr, php_memcach
instance->micro_version);
#endif

address = strpprintf(0, "%s:%d", memcached_server_name(instance), memcached_server_port(instance) - 1);
address = strpprintf(0, "%s:%d", memcached_server_name(instance), memcached_server_port(instance));

ZVAL_STR(&rv, version);
zend_hash_add(Z_ARRVAL_P(return_value), address, &rv);
Expand Down

0 comments on commit 2af9b61

Please sign in to comment.