Permalink
Browse files

Add missing TSRMLS_CC.

Fix for GitHub issue #193.
  • Loading branch information...
nicolasff committed May 29, 2012
1 parent 38e2cca commit 4169dc25193b0c1b409e82e363374061a0a7f6aa
Showing with 3 additions and 3 deletions.
  1. +3 −3 redis.c
View
@@ -5734,7 +5734,7 @@ PHP_METHOD(Redis, config)
// Construct an EVAL or EVALSHA command, with option argument array and number of arguments that are keys parameter
PHPAPI int
-redis_build_eval_cmd(RedisSock *redis_sock, char **ret, char *keyword, char *value, int val_len, zval *args, int keys_count) {
+redis_build_eval_cmd(RedisSock *redis_sock, char **ret, char *keyword, char *value, int val_len, zval *args, int keys_count TSRMLS_DC) {
zval **elem;
HashTable *args_hash;
HashPosition hash_pos;
@@ -5830,7 +5830,7 @@ PHP_METHOD(Redis, evalsha)
}
// Construct our EVALSHA command
- cmd_len = redis_build_eval_cmd(redis_sock, &cmd, "EVALSHA", sha, sha_len, args, keys_count);
+ cmd_len = redis_build_eval_cmd(redis_sock, &cmd, "EVALSHA", sha, sha_len, args, keys_count TSRMLS_CC);
REDIS_PROCESS_REQUEST(redis_sock, cmd, cmd_len);
IF_ATOMIC() {
@@ -5862,7 +5862,7 @@ PHP_METHOD(Redis, eval)
}
// Construct our EVAL command
- cmd_len = redis_build_eval_cmd(redis_sock, &cmd, "EVAL", script, script_len, args, keys_count);
+ cmd_len = redis_build_eval_cmd(redis_sock, &cmd, "EVAL", script, script_len, args, keys_count TSRMLS_CC);
REDIS_PROCESS_REQUEST(redis_sock, cmd, cmd_len);
IF_ATOMIC() {

0 comments on commit 4169dc2

Please sign in to comment.