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>2016-11-11 11:06:20 +0300
committerPavlo Yatsukhnenko <yatsukhnenko@gmail.com>2016-11-12 00:04:27 +0300
commit19f5f708c266558e9a848534d340ff8010751a9c (patch)
tree12e4ab16033fcf4e8acbffacc3757e9d90235470 /cluster_library.h
parent4c74162efa5661623e61af30e447f22ae0700dff (diff)
WIP: php7 compatibility
Diffstat (limited to 'cluster_library.h')
-rw-r--r--cluster_library.h14
1 files changed, 7 insertions, 7 deletions
diff --git a/cluster_library.h b/cluster_library.h
index f4947511..938deaf2 100644
--- a/cluster_library.h
+++ b/cluster_library.h
@@ -89,7 +89,7 @@
if(CLUSTER_IS_ATOMIC(c)) { \
RETURN_FALSE; \
} else { \
- add_next_index_bool(c->multi_resp, 0); \
+ add_next_index_bool(&c->multi_resp, 0); \
return; \
}
@@ -102,7 +102,7 @@
RETURN_FALSE; \
} \
} else { \
- add_next_index_bool(c->multi_resp, b); \
+ add_next_index_bool(&c->multi_resp, b); \
}
/* Helper to respond with a double or add it to our MULTI response */
@@ -110,7 +110,7 @@
if(CLUSTER_IS_ATOMIC(c)) { \
RETURN_DOUBLE(d); \
} else { \
- add_next_index_double(c->multi_resp, d); \
+ add_next_index_double(&c->multi_resp, d); \
}
/* Helper to return a string value */
@@ -118,7 +118,7 @@
if(CLUSTER_IS_ATOMIC(c)) { \
RETVAL_STRINGL(str, len); \
} else { \
- add_next_index_stringl(c->multi_resp, str, len); \
+ add_next_index_stringl(&c->multi_resp, str, len); \
} \
/* Return a LONG value */
@@ -126,7 +126,7 @@
if(CLUSTER_IS_ATOMIC(c)) { \
RETURN_LONG(val); \
} else { \
- add_next_index_long(c->multi_resp, val); \
+ add_next_index_long(&c->multi_resp, val); \
}
/* Macro to clear out a clusterMultiCmd structure */
@@ -211,7 +211,7 @@ typedef struct redisCluster {
char multi_len[REDIS_CLUSTER_SLOTS];
/* Variable to store MULTI response */
- zval *multi_resp;
+ zval multi_resp;
/* Flag for when we get a CLUSTERDOWN error */
short clusterdown;
@@ -422,7 +422,7 @@ PHP_REDIS_API void cluster_mbulk_assoc_resp(INTERNAL_FUNCTION_PARAMETERS,
PHP_REDIS_API void cluster_multi_mbulk_resp(INTERNAL_FUNCTION_PARAMETERS,
redisCluster *c, void *ctx);
PHP_REDIS_API zval *cluster_zval_mbulk_resp(INTERNAL_FUNCTION_PARAMETERS,
- redisCluster *c, int pull, mbulk_cb cb);
+ redisCluster *c, int pull, mbulk_cb cb, zval *z_ret);
/* Handlers for things like DEL/MGET/MSET/MSETNX */
PHP_REDIS_API void cluster_del_resp(INTERNAL_FUNCTION_PARAMETERS,