@@ -22,8 +22,7 @@ PHPAPI void redis_check_eof(RedisSock *redis_sock TSRMLS_DC)
22
22
}
23
23
}
24
24
25
- PHPAPI zval * redis_sock_read_multibulk_reply_zval (INTERNAL_FUNCTION_PARAMETERS ,
26
- RedisSock * redis_sock TSRMLS_DC ) {
25
+ PHPAPI zval * redis_sock_read_multibulk_reply_zval (INTERNAL_FUNCTION_PARAMETERS , RedisSock * redis_sock ) {
27
26
char inbuf [1024 ], * response ;
28
27
int response_len ;
29
28
@@ -47,7 +46,7 @@ PHPAPI zval *redis_sock_read_multibulk_reply_zval(INTERNAL_FUNCTION_PARAMETERS,
47
46
/**
48
47
* redis_sock_read_bulk_reply
49
48
*/
50
- PHPAPI char * redis_sock_read_bulk_reply (RedisSock * redis_sock , int bytes )
49
+ PHPAPI char * redis_sock_read_bulk_reply (RedisSock * redis_sock , int bytes TSRMLS_DC )
51
50
{
52
51
int offset = 0 ;
53
52
size_t got ;
@@ -110,7 +109,7 @@ PHPAPI char *redis_sock_read(RedisSock *redis_sock, int *buf_len TSRMLS_DC)
110
109
111
110
case '$' :
112
111
* buf_len = atoi (inbuf + 1 );
113
- resp = redis_sock_read_bulk_reply (redis_sock , * buf_len );
112
+ resp = redis_sock_read_bulk_reply (redis_sock , * buf_len TSRMLS_CC );
114
113
return resp ;
115
114
116
115
default :
@@ -244,7 +243,7 @@ redis_cmd_format(char **ret, char *format, ...) {
244
243
}
245
244
}
246
245
247
- PHPAPI void redis_bulk_double_response (INTERNAL_FUNCTION_PARAMETERS , RedisSock * redis_sock , zval * z_tab TSRMLS_DC ) {
246
+ PHPAPI void redis_bulk_double_response (INTERNAL_FUNCTION_PARAMETERS , RedisSock * redis_sock , zval * z_tab ) {
248
247
249
248
char * response ;
250
249
int response_len ;
@@ -263,7 +262,7 @@ PHPAPI void redis_bulk_double_response(INTERNAL_FUNCTION_PARAMETERS, RedisSock *
263
262
}
264
263
}
265
264
266
- PHPAPI void redis_boolean_response (INTERNAL_FUNCTION_PARAMETERS , RedisSock * redis_sock , zval * z_tab TSRMLS_DC ) {
265
+ PHPAPI void redis_boolean_response (INTERNAL_FUNCTION_PARAMETERS , RedisSock * redis_sock , zval * z_tab ) {
267
266
268
267
char * response ;
269
268
int response_len ;
@@ -295,7 +294,7 @@ PHPAPI void redis_boolean_response(INTERNAL_FUNCTION_PARAMETERS, RedisSock *redi
295
294
}
296
295
}
297
296
298
- PHPAPI void redis_long_response (INTERNAL_FUNCTION_PARAMETERS , RedisSock * redis_sock , zval * z_tab TSRMLS_DC ) {
297
+ PHPAPI void redis_long_response (INTERNAL_FUNCTION_PARAMETERS , RedisSock * redis_sock , zval * z_tab ) {
299
298
300
299
char * response ;
301
300
int response_len ;
@@ -325,7 +324,7 @@ PHPAPI void redis_long_response(INTERNAL_FUNCTION_PARAMETERS, RedisSock *redis_s
325
324
}
326
325
}
327
326
328
- PHPAPI int redis_sock_read_multibulk_reply_zipped_with_flag (INTERNAL_FUNCTION_PARAMETERS , RedisSock * redis_sock , zval * z_tab , int flag TSRMLS_DC ) {
327
+ PHPAPI int redis_sock_read_multibulk_reply_zipped_with_flag (INTERNAL_FUNCTION_PARAMETERS , RedisSock * redis_sock , zval * z_tab , int flag ) {
329
328
330
329
/*
331
330
int ret = redis_sock_read_multibulk_reply(INTERNAL_FUNCTION_PARAM_PASSTHRU, redis_sock, z_tab TSRMLS_CC);
@@ -363,16 +362,16 @@ PHPAPI int redis_sock_read_multibulk_reply_zipped_with_flag(INTERNAL_FUNCTION_PA
363
362
return 0 ;
364
363
}
365
364
366
- PHPAPI int redis_sock_read_multibulk_reply_zipped (INTERNAL_FUNCTION_PARAMETERS , RedisSock * redis_sock , zval * z_tab TSRMLS_DC ) {
365
+ PHPAPI int redis_sock_read_multibulk_reply_zipped (INTERNAL_FUNCTION_PARAMETERS , RedisSock * redis_sock , zval * z_tab ) {
367
366
368
367
return redis_sock_read_multibulk_reply_zipped_with_flag (INTERNAL_FUNCTION_PARAM_PASSTHRU , redis_sock , z_tab , 1 );
369
368
}
370
369
371
- PHPAPI int redis_sock_read_multibulk_reply_zipped_strings (INTERNAL_FUNCTION_PARAMETERS , RedisSock * redis_sock , zval * z_tab TSRMLS_DC ) {
370
+ PHPAPI int redis_sock_read_multibulk_reply_zipped_strings (INTERNAL_FUNCTION_PARAMETERS , RedisSock * redis_sock , zval * z_tab ) {
372
371
return redis_sock_read_multibulk_reply_zipped_with_flag (INTERNAL_FUNCTION_PARAM_PASSTHRU , redis_sock , z_tab , 0 );
373
372
}
374
373
375
- PHPAPI void redis_1_response (INTERNAL_FUNCTION_PARAMETERS , RedisSock * redis_sock , zval * z_tab TSRMLS_DC ) {
374
+ PHPAPI void redis_1_response (INTERNAL_FUNCTION_PARAMETERS , RedisSock * redis_sock , zval * z_tab ) {
376
375
377
376
char * response ;
378
377
int response_len ;
@@ -404,7 +403,7 @@ PHPAPI void redis_1_response(INTERNAL_FUNCTION_PARAMETERS, RedisSock *redis_sock
404
403
}
405
404
}
406
405
407
- PHPAPI void redis_string_response (INTERNAL_FUNCTION_PARAMETERS , RedisSock * redis_sock , zval * z_tab TSRMLS_DC ) {
406
+ PHPAPI void redis_string_response (INTERNAL_FUNCTION_PARAMETERS , RedisSock * redis_sock , zval * z_tab ) {
408
407
409
408
char * response ;
410
409
int response_len ;
@@ -538,7 +537,7 @@ PHPAPI int redis_sock_disconnect(RedisSock *redis_sock TSRMLS_DC)
538
537
int res = 0 ;
539
538
540
539
if (redis_sock -> stream != NULL ) {
541
- redis_sock_write (redis_sock , "QUIT" , sizeof ("QUIT" ) - 1 );
540
+ redis_sock_write (redis_sock , "QUIT" , sizeof ("QUIT" ) - 1 TSRMLS_CC );
542
541
543
542
redis_sock -> status = REDIS_SOCK_STATUS_DISCONNECTED ;
544
543
php_stream_close (redis_sock -> stream );
@@ -553,8 +552,7 @@ PHPAPI int redis_sock_disconnect(RedisSock *redis_sock TSRMLS_DC)
553
552
/**
554
553
* redis_sock_read_multibulk_reply
555
554
*/
556
- PHPAPI int redis_sock_read_multibulk_reply (INTERNAL_FUNCTION_PARAMETERS ,
557
- RedisSock * redis_sock , zval * z_tab TSRMLS_DC )
555
+ PHPAPI int redis_sock_read_multibulk_reply (INTERNAL_FUNCTION_PARAMETERS , RedisSock * redis_sock , zval * z_tab )
558
556
{
559
557
char inbuf [1024 ], * response ;
560
558
int response_len ;
@@ -586,7 +584,7 @@ PHPAPI int redis_sock_read_multibulk_reply(INTERNAL_FUNCTION_PARAMETERS,
586
584
587
585
PHPAPI int
588
586
redis_sock_read_multibulk_reply_loop (INTERNAL_FUNCTION_PARAMETERS , RedisSock * redis_sock ,
589
- zval * z_tab , int numElems TSRMLS_DC )
587
+ zval * z_tab , int numElems )
590
588
{
591
589
char * response ;
592
590
int response_len ;
@@ -607,7 +605,7 @@ redis_sock_read_multibulk_reply_loop(INTERNAL_FUNCTION_PARAMETERS, RedisSock *re
607
605
/**
608
606
* redis_sock_write
609
607
*/
610
- PHPAPI int redis_sock_write (RedisSock * redis_sock , char * cmd , size_t sz )
608
+ PHPAPI int redis_sock_write (RedisSock * redis_sock , char * cmd , size_t sz TSRMLS_DC )
611
609
{
612
610
redis_check_eof (redis_sock TSRMLS_CC );
613
611
return php_stream_write (redis_sock -> stream , cmd , sz );
@@ -623,7 +621,7 @@ PHPAPI void redis_free_socket(RedisSock *redis_sock)
623
621
}
624
622
625
623
626
- PHPAPI fold_item * get_multi_head (zval * object ) {
624
+ PHPAPI fold_item * get_multi_head (zval * object TSRMLS_DC ) {
627
625
628
626
zval * * multi_head = NULL ;
629
627
int type ;
@@ -632,7 +630,7 @@ PHPAPI fold_item* get_multi_head(zval *object) {
632
630
return zend_list_find (Z_LVAL_PP (multi_head ), & type );
633
631
}
634
632
635
- PHPAPI void set_multi_head (zval * object , fold_item * head ) {
633
+ PHPAPI void set_multi_head (zval * object , fold_item * head TSRMLS_DC ) {
636
634
637
635
zval * * multi_head = NULL ;
638
636
@@ -645,7 +643,7 @@ PHPAPI void set_multi_head(zval *object, fold_item *head) {
645
643
add_property_resource (object , "multi_head" , list_id );
646
644
}
647
645
648
- PHPAPI fold_item * get_multi_current (zval * object ) {
646
+ PHPAPI fold_item * get_multi_current (zval * object TSRMLS_DC ) {
649
647
650
648
zval * * multi_current = NULL ;
651
649
int type ;
@@ -654,7 +652,7 @@ PHPAPI fold_item* get_multi_current(zval *object) {
654
652
return zend_list_find (Z_LVAL_PP (multi_current ), & type );
655
653
}
656
654
657
- PHPAPI void set_multi_current (zval * object , fold_item * current ) {
655
+ PHPAPI void set_multi_current (zval * object , fold_item * current TSRMLS_DC ) {
658
656
659
657
zval * * multi_current = NULL ;
660
658
@@ -667,7 +665,7 @@ PHPAPI void set_multi_current(zval *object, fold_item *current) {
667
665
add_property_resource (object , "multi_current" , list_id );
668
666
}
669
667
670
- PHPAPI request_item * get_pipeline_head (zval * object ) {
668
+ PHPAPI request_item * get_pipeline_head (zval * object TSRMLS_DC ) {
671
669
672
670
zval * * pipeline_head = NULL ;
673
671
int type ;
@@ -676,7 +674,7 @@ PHPAPI request_item* get_pipeline_head(zval *object) {
676
674
return zend_list_find (Z_LVAL_PP (pipeline_head ), & type );
677
675
}
678
676
679
- PHPAPI void set_pipeline_head (zval * object , request_item * head ) {
677
+ PHPAPI void set_pipeline_head (zval * object , request_item * head TSRMLS_DC ) {
680
678
681
679
zval * * pipeline_head = NULL ;
682
680
@@ -689,7 +687,7 @@ PHPAPI void set_pipeline_head(zval *object, request_item *head) {
689
687
add_property_resource (object , "pipeline_head" , list_id );
690
688
}
691
689
692
- PHPAPI request_item * get_pipeline_current (zval * object ) {
690
+ PHPAPI request_item * get_pipeline_current (zval * object TSRMLS_DC ) {
693
691
694
692
zval * * pipeline_current = NULL ;
695
693
int type ;
@@ -698,7 +696,7 @@ PHPAPI request_item* get_pipeline_current(zval *object) {
698
696
return zend_list_find (Z_LVAL_PP (pipeline_current ), & type );
699
697
}
700
698
701
- PHPAPI void set_pipeline_current (zval * object , request_item * current ) {
699
+ PHPAPI void set_pipeline_current (zval * object , request_item * current TSRMLS_DC ) {
702
700
703
701
zval * * pipeline_current = NULL ;
704
702
0 commit comments