Skip to content

Commit f8fe60a

Browse files
committed
Fixed getStat
1 parent 8f11e2e commit f8fe60a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

php_memcached.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2931,7 +2931,7 @@ static memcached_return php_memc_do_stats_callback(const memcached_st *ptr, php_
29312931
int hostport_len;
29322932
struct callbackContext* context = (struct callbackContext*) in_context;
29332933
zval entry;
2934-
hostport_len = spprintf(&hostport, 0, "%s:%d", memcached_server_name(instance), memcached_server_port(instance) - 1);
2934+
hostport_len = spprintf(&hostport, 0, "%s:%d", memcached_server_name(instance), memcached_server_port(instance));
29352935

29362936
array_init(&entry);
29372937

0 commit comments

Comments
 (0)