@@ -214,7 +214,7 @@ redis_sock_read_scan_reply(INTERNAL_FUNCTION_PARAMETERS, RedisSock *redis_sock,
214
214
REDIS_SCAN_TYPE type , long * iter )
215
215
{
216
216
REDIS_REPLY_TYPE reply_type ;
217
- int reply_info ;
217
+ long int reply_info ;
218
218
char * p_iter ;
219
219
220
220
/* Our response should have two multibulk replies */
@@ -2229,7 +2229,7 @@ redis_sock_gets(RedisSock *redis_sock, char *buf, int buf_size,
2229
2229
2230
2230
PHP_REDIS_API int
2231
2231
redis_read_reply_type (RedisSock * redis_sock , REDIS_REPLY_TYPE * reply_type ,
2232
- int * reply_info TSRMLS_DC )
2232
+ long int * reply_info TSRMLS_DC )
2233
2233
{
2234
2234
// Make sure we haven't lost the connection, even trying to reconnect
2235
2235
if (-1 == redis_check_eof (redis_sock , 0 TSRMLS_CC )) {
@@ -2257,7 +2257,7 @@ redis_read_reply_type(RedisSock *redis_sock, REDIS_REPLY_TYPE *reply_type,
2257
2257
}
2258
2258
2259
2259
/* Set our size response */
2260
- * reply_info = atoi (inbuf );
2260
+ * reply_info = atol (inbuf );
2261
2261
}
2262
2262
2263
2263
/* Success! */
@@ -2320,7 +2320,7 @@ PHP_REDIS_API int
2320
2320
redis_read_multibulk_recursive (RedisSock * redis_sock , int elements , zval * * z_ret
2321
2321
TSRMLS_DC )
2322
2322
{
2323
- int reply_info ;
2323
+ long int reply_info ;
2324
2324
REDIS_REPLY_TYPE reply_type ;
2325
2325
zval * z_subelem ;
2326
2326
@@ -2383,7 +2383,7 @@ redis_read_variant_reply(INTERNAL_FUNCTION_PARAMETERS, RedisSock *redis_sock,
2383
2383
{
2384
2384
// Reply type, and reply size vars
2385
2385
REDIS_REPLY_TYPE reply_type ;
2386
- int reply_info ;
2386
+ long int reply_info ;
2387
2387
//char *bulk_resp;
2388
2388
zval * z_ret ;
2389
2389
0 commit comments