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:
authorPavlo Yatsukhnenko <yatsukhnenko@gmail.com>2019-05-12 15:30:47 +0300
committerPavlo Yatsukhnenko <yatsukhnenko@gmail.com>2019-05-12 15:30:47 +0300
commit98bd2886c391d01607e1c4d1d06faeebbd4ed2c3 (patch)
tree5eb5324e37c44c928af0b9294726ad0933e43fe9 /redis_commands.c
parent8a45d18c383647e573d5fd2b3617eb402a6bb6a5 (diff)
JSON serializer
Diffstat (limited to 'redis_commands.c')
-rw-r--r--redis_commands.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/redis_commands.c b/redis_commands.c
index b18e632b..829bfb04 100644
--- a/redis_commands.c
+++ b/redis_commands.c
@@ -3882,7 +3882,9 @@ void redis_setoption_handler(INTERNAL_FUNCTION_PARAMETERS,
switch(option) {
case REDIS_OPT_SERIALIZER:
val_long = zval_get_long(val);
- if (val_long == REDIS_SERIALIZER_NONE || val_long == REDIS_SERIALIZER_PHP
+ if (val_long == REDIS_SERIALIZER_NONE
+ || val_long == REDIS_SERIALIZER_PHP
+ || val_long == REDIS_SERIALIZER_JSON
#ifdef HAVE_REDIS_IGBINARY
|| val_long == REDIS_SERIALIZER_IGBINARY
#endif