Skip to content

Commit

Permalink
Don't use zend_fcall_info.no_separation
Browse files Browse the repository at this point in the history
  • Loading branch information
yatsukhnenko committed Jul 9, 2020
1 parent f771ea1 commit a7662da
Show file tree
Hide file tree
Showing 4 changed files with 2 additions and 5 deletions.
1 change: 0 additions & 1 deletion cluster_library.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
1 change: 0 additions & 1 deletion library.c
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down
1 change: 0 additions & 1 deletion redis_array_impl.c
Original file line number Diff line number Diff line change
Expand Up @@ -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) */
Expand Down
4 changes: 2 additions & 2 deletions redis_commands.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -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);
Expand Down

0 comments on commit a7662da

Please sign in to comment.