Skip to content

Commit

Permalink
Add missing TSRMLS_CC.
Browse files Browse the repository at this point in the history
Fix for GitHub issue #193.
  • Loading branch information
nicolasff committed May 29, 2012
1 parent 38e2cca commit 4169dc2
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions redis.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -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() {
Expand Down Expand Up @@ -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() {
Expand Down

0 comments on commit 4169dc2

Please sign in to comment.