8000 remove fold_this_item · jrtkcoder/phpredis@d4c2663 · GitHub
[go: up one dir, main page]

Skip to content

Commit d4c2663

Browse files
committed
remove fold_this_item
< 8000 div class="p-2 d-flex gap-2 flex-column flex-md-row flex-justify-between">
1 parent c4b11a9 commit d4c2663

File tree

1 file changed

+5
-12
lines changed

1 file changed

+5
-12
lines changed

redis.c

Lines changed: 5 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -2445,25 +2445,18 @@ PHP_REDIS_API int redis_response_enqueued(RedisSock *redis_sock TSRMLS_DC) {
24452445
return ret;
24462446
}
24472447

2448-
PHP_REDIS_API void fold_this_item(INTERNAL_FUNCTION_PARAMETERS, fold_item *item,
2449-
RedisSock *redis_sock, zval *z_tab)
2450-
{
2451-
item->fun(INTERNAL_FUNCTION_PARAM_PASSTHRU, redis_sock, z_tab, item->ctx
2452-
TSRMLS_CC);
2453-
}
2454-
24552448
PHP_REDIS_API int
24562449
redis_sock_read_multibulk_multi_reply_loop(INTERNAL_FUNCTION_PARAMETERS,
24572450
RedisSock *redis_sock, zval *z_tab,
24582451
int numElems)
24592452
{
2453+
fold_item *fi;
24602454

2461-
fold_item *current;
2462-
for (current = redis_sock->head; current; current = current->next) {
2463-
fold_this_item(INTERNAL_FUNCTION_PARAM_PASSTHRU, current, redis_sock,
2464-
z_tab);
2455+
for (fi = redis_sock->head; fi; fi = fi->next) {
2456+
fi->fun(INTERNAL_FUNCTION_PARAM_PASSTHRU, redis_sock, z_tab,
2457+
fi->ctx TSRMLS_CC);
24652458
}
2466-
redis_sock->current = current;
2459+
redis_sock->current = fi;
24672460
return 0;
24682461
}
24692462

0 commit comments

Comments
 (0)
0