Permalink
Browse files

Fix bug #15896 (Memcached setMulti error)

Signed-off-by: Richard Jones <rj@metabrew.com>
  • Loading branch information...
1 parent 53d99a8 commit 1535c702caecfc1c0cf50c5afd5d2989406f17dd Andrei Zmievski committed with Feb 6, 2009
Showing with 1 addition and 1 deletion.
  1. +1 −1 php_memcached.c
View
@@ -915,7 +915,7 @@ static void php_memc_setMulti_impl(INTERNAL_FUNCTION_PARAMETERS, zend_bool by_ke
server_key_len = str_key_len;
}
status = memcached_set_by_key(i_obj->memc, server_key, server_key_len, str_key,
- str_key_len, payload, payload_len, expiration, flags);
+ str_key_len-1, payload, payload_len, expiration, flags);
efree(payload);
if (php_memc_handle_error(status TSRMLS_CC) < 0) {

0 comments on commit 1535c70

Please sign in to comment.