Skip to content

Commit c702ae0

Browse files
itcommichael-grunder
authored andcommitted
forgot to pass TSRMLS_CC, and TYPO
1 parent 18f368f commit c702ae0

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

library.c

+4-4
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ static int resend_auth(RedisSock *redis_sock TSRMLS_DC) {
8080
cmd_len = redis_cmd_format_static(&cmd, "AUTH", "s", redis_sock->auth,
8181
strlen(redis_sock->auth));
8282

83-
if (redis_sock_write(redis_sock, cmd, cmd_len TSRMLS_DC) < 0) {
83+
if (redis_sock_write(redis_sock, cmd, cmd_len TSRMLS_CC) < 0) {
8484
efree(cmd);
8585
return -1;
8686
}
@@ -185,12 +185,12 @@ PHP_REDIS_API int redis_check_eof(RedisSock *redis_sock TSRMLS_DC)
185185
/* We've reconnected if we have a count */
186186
if (count) {
187187
/* If we're using a password, attempt a reauthorization */
188-
if (redis_sock->auth && resend_auth(redis_sock) != 0) {
188+
if (redis_sock->auth && resend_auth(redis_sock TSRMLS_CC) != 0) {
189189
return -1;
190190
}
191191

192192
/* If we're using a non zero db, reselect it */
193-
if (redis_sock->dbNumber && reselect_db(redis_sock) != 0) {
193+
if (redis_sock->dbNumber && reselect_db(redis_sock TSRMLS_CC) != 0) {
194194
return -1;
195195
}
196196
}
@@ -350,7 +350,7 @@ PHP_REDIS_API char *redis_sock_read(RedisSock *redis_sock, int *buf_len TSRMLS_D
350350
redis_sock_set_err(redis_sock, inbuf+1, err_len);
351351

352352
/* Filter our ERROR through the few that should actually throw */
353-
redis_error_throw(inbuf + 1, err_len);
353+
redis_error_throw(inbuf + 1, err_len TSRMLS_CC);
354354

355355
return NULL;
356356
case '$':

0 commit comments

Comments
 (0)