Skip to content

Commit cbcbece

Browse files
laruencerlerdorf
authored andcommitted
Fixed getStat
1 parent 35a543f commit cbcbece

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
@@ -2927,7 +2927,7 @@ static memcached_return php_memc_do_stats_callback(const memcached_st *ptr, php_
29272927
int hostport_len;
29282928
struct callbackContext* context = (struct callbackContext*) in_context;
29292929
zval entry;
2930-
hostport_len = spprintf(&hostport, 0, "%s:%d", memcached_server_name(instance), memcached_server_port(instance) - 1);
2930+
hostport_len = spprintf(&hostport, 0, "%s:%d", memcached_server_name(instance), memcached_server_port(instance));
29312931

29322932
array_init(&entry);
29332933

0 commit comments

Comments
 (0)