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>2017-10-04 14:29:20 +0300
committerPavlo Yatsukhnenko <yatsukhnenko@gmail.com>2017-10-05 10:03:30 +0300
commitcb003239a6c50189fefb820eadbc51b3cf073006 (patch)
tree77997eba0bf1aa5069bedf5d951e165cf68734e4 /redis_commands.h
parentdee8a6b1f39180bd0cc078c77eb12bb097e1ab33 (diff)
Issue #1245
Move building `script` command logic to `redis_build_script_cmd` and use it in Redis and RedisCluster objects. Fix arginfo for `RedisCluster::script`. Fix memory leak in `cluster_raw_cmd` when `cluster_cmd_get_slot` fails.
Diffstat (limited to 'redis_commands.h')
-rw-r--r--redis_commands.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/redis_commands.h b/redis_commands.h
index 73b599cd..51d0b9f1 100644
--- a/redis_commands.h
+++ b/redis_commands.h
@@ -30,6 +30,8 @@ typedef enum geoSortType {
/* Construct a raw command */
int redis_build_raw_cmd(zval *z_args, int argc, char **cmd, int *cmd_len TSRMLS_DC);
+/* Construct a script command */
+smart_string *redis_build_script_cmd(smart_string *cmd, int argc, zval *z_args);
/* Redis command generics. Many commands share common prototypes meaning that
* we can write one function to handle all of them. For example, there are