diff options
author | michael-grunder <michael.grunder@gmail.com> | 2014-11-01 01:00:59 +0300 |
---|---|---|
committer | michael-grunder <michael.grunder@gmail.com> | 2014-11-01 01:00:59 +0300 |
commit | a302564c4c9a2800a3ff88def8f900400fbedec2 (patch) | |
tree | b28f7897c15d401b6aec7ebd731bda3ff2c8c2c3 /php_redis.h | |
parent | c1f862c99db7c8935d31a88f7259d2755a7ba295 (diff) |
Fix parsing of 'zipped' replies for various uses
As discovered in issue #523, phpredis was attempting to unserialize
both the keys *and* scores for commands like zRangeByScore. This
had to do with the logic around deserialization in the response.
In addition, this same bug would have caused issues when running
commands like $r->config('get'), because that too, would have tried
to unserialize the values, which we don't want to do.
This commit reworks parsing and zipping up replies by allowing the
call to be configured to unseraialize any combination of keys or
values (or none or both).
Diffstat (limited to 'php_redis.h')
-rw-r--r-- | php_redis.h | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/php_redis.h b/php_redis.h index e6ec1ef2..5054a321 100644 --- a/php_redis.h +++ b/php_redis.h @@ -235,7 +235,6 @@ PHP_REDIS_API void generic_empty_long_cmd(INTERNAL_FUNCTION_PARAMETERS, char *cm PHP_REDIS_API void generic_subscribe_cmd(INTERNAL_FUNCTION_PARAMETERS, char *sub_cmd); PHP_REDIS_API void generic_unsubscribe_cmd(INTERNAL_FUNCTION_PARAMETERS, char *unsub_cmd); -PHP_REDIS_API void array_zip_values_and_scores(RedisSock *redis_sock, zval *z_tab, int use_atof TSRMLS_DC); PHP_REDIS_API int redis_response_enqueued(RedisSock *redis_sock TSRMLS_DC); PHP_REDIS_API int get_flag(zval *object TSRMLS_DC); |