Permalink
Browse files

Bludgeon bug #15896 (Memcached setMulti error) into submission.

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

0 comments on commit 95aaa1f

Please sign in to comment.