Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/phpredis/phpredis.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Grunder <michael.grunder@gmail.com>2019-06-03 03:44:26 +0300
committerGitHub <noreply@github.com>2019-06-03 03:44:26 +0300
commit19f3efcfe6e1a32451a543fa186a8f38d250d941 (patch)
treea05366b25768d5ec2056b43130d2c9181dd77abe /redis_cluster.c
parent07b1e7738e462f5bf8a34061156a93c0d00400ce (diff)
Issue.1555 zrange withscores arg (#1565)
Allows ZRANGE to be called either with `true` or `['withscores' => true]` so it's consistent with `ZRANGEBYSCORE` but also backward compatible. Fixes #1555
Diffstat (limited to 'redis_cluster.c')
-rw-r--r--redis_cluster.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/redis_cluster.c b/redis_cluster.c
index 346ee88f..b952cc4b 100644
--- a/redis_cluster.c
+++ b/redis_cluster.c
@@ -2440,7 +2440,7 @@ static void cluster_raw_cmd(INTERNAL_FUNCTION_PARAMETERS, char *kw, int kw_len)
}
/* We at least need the key or [host,port] argument */
- if (argc<1) {
+ if (argc < 1) {
php_error_docref(0 TSRMLS_CC, E_WARNING,
"Command requires at least an argument to direct to a node");
RETURN_FALSE;
@@ -3069,6 +3069,8 @@ PHP_METHOD(RedisCluster, xtrim) {
CLUSTER_PROCESS_CMD(xtrim, cluster_long_resp, 0);
}
+
+
/* {{{ proto string RedisCluster::echo(string key, string msg)
* proto string RedisCluster::echo(array host_port, string msg) */
PHP_METHOD(RedisCluster, echo) {