Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 3160a64

Browse files
committed
Fix missing TSRMLS_CC in send_discard_static.
1 parent 00b5784 commit 3160a64

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

redis.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -289,7 +289,7 @@ PHPAPI zend_class_entry *redis_get_exception_base(int root TSRMLS_DC)
289289
/**
290290
* Send a static DISCARD in case we're in MULTI mode.
291291
*/
292-
static int send_discard_static(RedisSock *redis_sock) {
292+
static int send_discard_static(RedisSock *redis_sock TSRMLS_DC) {
293293

294294
int result = FAILURE;
295295
char *cmd, *response;
@@ -488,7 +488,7 @@ PHP_METHOD(Redis,__destruct) {
488488
// If we think we're in MULTI mode, send a discard
489489
if(redis_sock->mode == MULTI) {
490490
// Discard any multi commands, and free any callbacks that have been queued
491-
send_discard_static(redis_sock);
491+
send_discard_static(redis_sock TSRMLS_CC);
492492
free_reply_callbacks(getThis(), redis_sock);
493493
}
494494
}

0 commit comments

Comments
 (0)