From 5cb30fb2a65abc9d31ff58af6da0fbb6be4ec153 Mon Sep 17 00:00:00 2001 From: michael-grunder Date: Sun, 12 May 2019 18:49:33 -0700 Subject: Adds OPT_REPLY_LITERAL for rawCommand and EVAL Adds an option to process the actual strings in simple string replies as opposed to translating them to `true`. This only applies to `rawCommand` and `eval` because as far as I know know vanilla Redis command attaches any information besides `OK` to simple string replies. Addresses #1550 --- cluster_library.c | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'cluster_library.c') diff --git a/cluster_library.c b/cluster_library.c index 7dd104f5..dd1e0bbc 100644 --- a/cluster_library.c +++ b/cluster_library.c @@ -2098,6 +2098,12 @@ PHP_REDIS_API void cluster_variant_resp(INTERNAL_FUNCTION_PARAMETERS, redisClust cluster_variant_resp_generic(INTERNAL_FUNCTION_PARAM_PASSTHRU, c, 0, ctx); } +PHP_REDIS_API void cluster_variant_raw_resp(INTERNAL_FUNCTION_PARAMETERS, redisCluster *c, + void *ctx) +{ + cluster_variant_resp_generic(INTERNAL_FUNCTION_PARAM_PASSTHRU, c, c->flags->reply_literal, ctx); +} + PHP_REDIS_API void cluster_variant_resp_strings(INTERNAL_FUNCTION_PARAMETERS, redisCluster *c, void *ctx) { -- cgit v1.2.3