@@ -80,7 +80,7 @@ static int resend_auth(RedisSock *redis_sock TSRMLS_DC) {
80
80
cmd_len = redis_cmd_format_static (& cmd , "AUTH" , "s" , redis_sock -> auth ,
81
81
strlen (redis_sock -> auth ));
82
82
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 ) {
84
84
efree (cmd );
85
85
return -1 ;
86
86
}
@@ -185,12 +185,12 @@ PHP_REDIS_API int redis_check_eof(RedisSock *redis_sock TSRMLS_DC)
185
185
/* We've reconnected if we have a count */
186
186
if (count ) {
187
187
/* 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 ) {
189
189
return -1 ;
190
190
}
191
191
192
192
/* 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 ) {
194
194
return -1 ;
195
195
}
196
196
}
@@ -350,7 +350,7 @@ PHP_REDIS_API char *redis_sock_read(RedisSock *redis_sock, int *buf_len TSRMLS_D
350
350
redis_sock_set_err (redis_sock , inbuf + 1 , err_len );
351
351
352
352
/* 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 );
354
354
355
355
return NULL ;
356
356
case '$' :
0 commit comments