Skip to content
This repository
Browse code

Add missing TSRMLS_CC.

Fix for GitHub issue #193.
  • Loading branch information...
commit 4169dc25193b0c1b409e82e363374061a0a7f6aa 1 parent 38e2cca
Nicolas Favre-Felix authored May 29, 2012

Showing 1 changed file with 3 additions and 3 deletions. Show diff stats Hide diff stats

  1. 6  redis.c
6  redis.c
@@ -5734,7 +5734,7 @@ PHP_METHOD(Redis, config)
5734 5734
 
5735 5735
 // Construct an EVAL or EVALSHA command, with option argument array and number of arguments that are keys parameter
5736 5736
 PHPAPI int
5737  
-redis_build_eval_cmd(RedisSock *redis_sock, char **ret, char *keyword, char *value, int val_len, zval *args, int keys_count) {
  5737
+redis_build_eval_cmd(RedisSock *redis_sock, char **ret, char *keyword, char *value, int val_len, zval *args, int keys_count TSRMLS_DC) {
5738 5738
 	zval **elem;
5739 5739
 	HashTable *args_hash;
5740 5740
 	HashPosition hash_pos;
@@ -5830,7 +5830,7 @@ PHP_METHOD(Redis, evalsha)
5830 5830
 	}
5831 5831
 
5832 5832
 	// Construct our EVALSHA command
5833  
-	cmd_len = redis_build_eval_cmd(redis_sock, &cmd, "EVALSHA", sha, sha_len, args, keys_count);
  5833
+	cmd_len = redis_build_eval_cmd(redis_sock, &cmd, "EVALSHA", sha, sha_len, args, keys_count TSRMLS_CC);
5834 5834
 
5835 5835
 	REDIS_PROCESS_REQUEST(redis_sock, cmd, cmd_len);
5836 5836
 	IF_ATOMIC() {
@@ -5862,7 +5862,7 @@ PHP_METHOD(Redis, eval)
5862 5862
     }
5863 5863
 
5864 5864
     // Construct our EVAL command
5865  
-    cmd_len = redis_build_eval_cmd(redis_sock, &cmd, "EVAL", script, script_len, args, keys_count);
  5865
+    cmd_len = redis_build_eval_cmd(redis_sock, &cmd, "EVAL", script, script_len, args, keys_count TSRMLS_CC);
5866 5866
 
5867 5867
     REDIS_PROCESS_REQUEST(redis_sock, cmd, cmd_len);
5868 5868
     IF_ATOMIC() {

0 notes on commit 4169dc2

Please sign in to comment.
Something went wrong with that request. Please try again.