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>2016-06-07 23:09:22 +0300
committermichael-grunder <michael.grunder@gmail.com>2016-06-07 23:09:22 +0300
commitf4bf4e306a98f89034ea9892392a1f15f6272cab (patch)
tree4022d218dae71814036261bc70f7424ec8dd8143 /redis_commands.c
parent4f49bf754abbd7069f1a9cef85301de9e59b65fa (diff)
Geo* unit tests
Diffstat (limited to 'redis_commands.c')
-rw-r--r--redis_commands.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/redis_commands.c b/redis_commands.c
index 5e8626d9..8a6167f7 100644
--- a/redis_commands.c
+++ b/redis_commands.c
@@ -2802,6 +2802,10 @@ static void get_georadius_opts(HashTable *ht, int *withcoord, int *withdist,
*withdist = 1;
} else if (!strcasecmp(optstr, "withhash")) {
*withhash = 1;
+ } else if (!strcasecmp(optstr, "asc")) {
+ *sort = SORT_ASC;
+ } else if (!strcasecmp(optstr, "desc")) {
+ *sort = SORT_DESC;
}
} else if (!strcasecmp(optkey, "count") && Z_TYPE_PP(optval) == IS_LONG) {
*count = Z_LVAL_PP(optval);