Permalink
Browse files

Update php_memcached.c

The symbols memcached_server_major_version, memcached_server_minor_version, memcached_server_micro_version have been introduced in libmemcached 1.0.9, not 1.0.9.
Reference: I downloaded the libmemcached source from here:
https://launchpad.net/libmemcached/+download
  • Loading branch information...
1 parent e781e16 commit 80cb21467a1db6b7b18725df586f11801c823695 @giac giac committed Mar 26, 2013
Showing with 1 addition and 1 deletion.
  1. +1 −1 php_memcached.c
View
@@ -2730,7 +2730,7 @@ static memcached_return php_memc_do_version_callback(const memcached_st *ptr, me
struct callbackContext* context = (struct callbackContext*) in_context;
hostport_len = spprintf(&hostport, 0, "%s:%d", memcached_server_name(instance), memcached_server_port(instance));
-#if defined(LIBMEMCACHED_VERSION_HEX) && LIBMEMCACHED_VERSION_HEX >= 0x01000008
+#if defined(LIBMEMCACHED_VERSION_HEX) && LIBMEMCACHED_VERSION_HEX >= 0x01000009
version_len = snprintf(version, sizeof(version), "%d.%d.%d",
memcached_server_major_version(instance),
memcached_server_minor_version(instance),

0 comments on commit 80cb214

Please sign in to comment.