diff options
author | Michael Grunder <michael.grunder@gmail.com> | 2020-09-28 21:07:46 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-09-28 21:07:46 +0300 |
commit | 950e8de807ba17ecfff62504a6ee7a959a5df714 (patch) | |
tree | b74010cca8baeb173be3edf216e66aa3e18b5f83 /common.h | |
parent | 7e5191fb5645296b9e852fab7991820c1eaf0422 (diff) |
Issue.1847 cluster segfault (#1850)
Fix for #1847 when dealing with NULL multi bulk replies in RedisCluster.
Adds `Redis::OPT_NULL_MULTIBULK_AS_NULL` setting to have PhpRedis
treat NULL multi bulk replies as `NULL` instead of `[]`.
Co-authored-by: Alex Offshore <offshore@aopdg.ru>
Diffstat (limited to 'common.h')
-rw-r--r-- | common.h | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -82,6 +82,7 @@ typedef enum _PUBSUB_TYPE { #define REDIS_OPT_COMPRESSION 7 #define REDIS_OPT_REPLY_LITERAL 8 #define REDIS_OPT_COMPRESSION_LEVEL 9 +#define REDIS_OPT_NULL_MBULK_AS_NULL 10 /* cluster options */ #define REDIS_FAILOVER_NONE 0 @@ -296,6 +297,7 @@ typedef struct { int readonly; int reply_literal; + int null_mbulk_as_null; int tcp_keepalive; } RedisSock; /* }}} */ |