diff options
-rw-r--r-- | library.c | 2 | ||||
-rw-r--r-- | php_redis.h | 2 |
2 files changed, 2 insertions, 2 deletions
@@ -1920,11 +1920,11 @@ PHP_REDIS_API int redis_mbulk_reply_assoc(INTERNAL_FUNCTION_PARAMETERS, RedisSoc if(response != NULL) { zval z; if(redis_unserialize(redis_sock, response, response_len, &z) == 1) { - efree(response); add_assoc_zval_ex(&z_multi_result, Z_STRVAL(z_keys[i]), Z_STRLEN(z_keys[i]), &z); } else { add_assoc_stringl_ex(&z_multi_result, Z_STRVAL(z_keys[i]), Z_STRLEN(z_keys[i]), response, response_len); } + efree(response); } else { add_assoc_bool_ex(&z_multi_result, Z_STRVAL(z_keys[i]), Z_STRLEN(z_keys[i]), 0); } diff --git a/php_redis.h b/php_redis.h index b52fceef..94fe8ac6 100644 --- a/php_redis.h +++ b/php_redis.h @@ -25,7 +25,7 @@ #define PHP_REDIS_H /* phpredis version */ -#define PHP_REDIS_VERSION "2.2.5" +#define PHP_REDIS_VERSION "2.2.8-devphp7" PHP_METHOD(Redis, __construct); PHP_METHOD(Redis, __destruct); |