mirror of
https://github.com/phpredis/phpredis.git
synced 2026-06-19 07:35:31 +00:00
Don't use zend_fcall_info.no_separation
This commit is contained in:
@@ -1818,7 +1818,6 @@ PHP_REDIS_API void cluster_sub_resp(INTERNAL_FUNCTION_PARAMETERS, redisCluster *
|
||||
zval z_ret, z_args[4];
|
||||
sctx->cb.retval = &z_ret;
|
||||
sctx->cb.params = z_args;
|
||||
sctx->cb.no_separation = 0;
|
||||
|
||||
/* We're in a subscribe loop */
|
||||
c->subscribed_slot = c->cmd_slot;
|
||||
|
||||
@@ -464,7 +464,6 @@ PHP_REDIS_API int redis_subscribe_response(INTERNAL_FUNCTION_PARAMETERS,
|
||||
zval z_ret, z_args[4];
|
||||
sctx->cb.retval = &z_ret;
|
||||
sctx->cb.params = z_args;
|
||||
sctx->cb.no_separation = 0;
|
||||
|
||||
/* Multibulk response, {[pattern], type, channel, payload } */
|
||||
while(1) {
|
||||
|
||||
@@ -1134,7 +1134,6 @@ zval_rehash_callback(zend_fcall_info *z_cb, zend_fcall_info_cache *z_cb_cache,
|
||||
z_cb->params = z_args;
|
||||
z_cb->retval = z_ret;
|
||||
|
||||
z_cb->no_separation = 0;
|
||||
z_cb->param_count = 2;
|
||||
|
||||
/* run cb(hostname, count) */
|
||||
|
||||
+2
-2
@@ -793,7 +793,7 @@ int redis_subscribe_cmd(INTERNAL_FUNCTION_PARAMETERS, RedisSock *redis_sock,
|
||||
zval *z_arr, *z_chan;
|
||||
HashTable *ht_chan;
|
||||
smart_string cmdstr = {0};
|
||||
subscribeContext *sctx = emalloc(sizeof(subscribeContext));
|
||||
subscribeContext *sctx = ecalloc(1, sizeof(*sctx));
|
||||
size_t key_len;
|
||||
int key_free;
|
||||
char *key;
|
||||
@@ -854,7 +854,7 @@ int redis_unsubscribe_cmd(INTERNAL_FUNCTION_PARAMETERS, RedisSock *redis_sock,
|
||||
zval *z_arr, *z_chan;
|
||||
HashTable *ht_arr;
|
||||
smart_string cmdstr = {0};
|
||||
subscribeContext *sctx = emalloc(sizeof(subscribeContext));
|
||||
subscribeContext *sctx = ecalloc(1, sizeof(*sctx));
|
||||
|
||||
if (zend_parse_parameters(ZEND_NUM_ARGS(), "a", &z_arr) == FAILURE) {
|
||||
efree(sctx);
|
||||
|
||||
Reference in New Issue
Block a user