55
55
#define CLUSTER_LAZY_CONNECT (s ) \
56
56
if(s->lazy_connect) { \
57
57
s->lazy_connect = 0; \
58
- redis_sock_server_open(s, 1 TSRMLS_CC ); \
58
+ redis_sock_server_open(s, 1); \
59
59
}
60
60
61
61
/* Clear out our "last error" */
69
69
70
70
/* Protected sending of data down the wire to a RedisSock->stream */
71
71
#define CLUSTER_SEND_PAYLOAD (sock , buf , len ) \
72
- (sock && sock->stream && !redis_check_eof(sock, 1 TSRMLS_CC ) && \
72
+ (sock && sock->stream && !redis_check_eof(sock, 1) && \
73
73
php_stream_write(sock->stream, buf, len)==len)
74
74
75
75
/* Macro to read our reply type character */
76
76
#define CLUSTER_VALIDATE_REPLY_TYPE (sock , type ) \
77
- (redis_check_eof(sock, 1 TSRMLS_CC ) == 0 && \
77
+ (redis_check_eof(sock, 1) == 0 && \
78
78
(php_stream_getc(sock->stream) == type))
79
79
80
80
/* Reset our last single line reply buffer and length */
@@ -148,10 +148,10 @@ typedef enum CLUSTER_REDIR_TYPE {
148
148
} CLUSTER_REDIR_TYPE ;
149
149
150
150
/* MULTI BULK response callback typedef */
151
- typedef int (* mbulk_cb )(RedisSock * ,zval * ,long long , void * TSRMLS_DC );
151
+ typedef int (* mbulk_cb )(RedisSock * ,zval * ,long long , void * );
152
152
153
153
/* Specific destructor to free a cluster object */
154
- // void redis_destructor_redis_cluster(zend_rsrc_list_entry *rsrc TSRMLS_DC );
154
+ // void redis_destructor_redis_cluster(zend_rsrc_list_entry *rsrc);
155
155
156
156
/* A Redis Cluster master node */
157
157
typedef struct redisClusterNode {
@@ -317,9 +317,9 @@ typedef struct clusterReply {
317
317
} clusterReply ;
318
318
319
319
/* Direct variant response handler */
320
- clusterReply * cluster_read_resp (redisCluster * c TSRMLS_DC );
320
+ clusterReply * cluster_read_resp (redisCluster * c );
321
321
clusterReply * cluster_read_sock_resp (RedisSock * redis_sock ,
322
- REDIS_REPLY_TYPE type , size_t reply_len TSRMLS_DC );
322
+ REDIS_REPLY_TYPE type , size_t reply_len );
323
323
void cluster_free_reply (clusterReply * reply , int free_data );
324
324
325
325
/* Cluster distribution helpers for WATCH */
@@ -328,7 +328,7 @@ void cluster_dist_free(HashTable *ht);
328
328
int cluster_dist_add_key (redisCluster * c , HashTable * ht , char * key ,
329
329
int key_len , clusterKeyVal * * kv );
330
330
void cluster_dist_add_val (redisCluster * c , clusterKeyVal * kv , zval * val
331
- TSRMLS_DC );
331
+ );
332
332
333
333
/* Aggregation for multi commands like MGET, MSET, and MSETNX */
334
334
void cluster_multi_init (clusterMultiCmd * mc , char * kw , int kw_len );
@@ -344,26 +344,26 @@ unsigned short cluster_hash_key(const char *key, int len);
344
344
long long mstime (void );
345
345
346
346
PHP_REDIS_API short cluster_send_command (redisCluster * c , short slot , const char * cmd ,
347
- int cmd_len TSRMLS_DC );
347
+ int cmd_len );
348
348
349
- PHP_REDIS_API void cluster_disconnect (redisCluster * c TSRMLS_DC );
349
+ PHP_REDIS_API void cluster_disconnect (redisCluster * c );
350
350
351
- PHP_REDIS_API int cluster_send_exec (redisCluster * c , short slot TSRMLS_DC );
352
- PHP_REDIS_API int cluster_send_discard (redisCluster * c , short slot TSRMLS_DC );
353
- PHP_REDIS_API int cluster_abort_exec (redisCluster * c TSRMLS_DC );
351
+ PHP_REDIS_API int cluster_send_exec (redisCluster * c , short slot );
352
+ PHP_REDIS_API int cluster_send_discard (redisCluster * c , short slot );
353
+ PHP_REDIS_API int cluster_abort_exec (redisCluster * c );
354
354
PHP_REDIS_API int cluster_reset_multi (redisCluster * c );
355
355
356
356
PHP_REDIS_API short cluster_find_slot (redisCluster * c , const char * host ,
357
357
unsigned short port );
358
358
PHP_REDIS_API int cluster_send_slot (redisCluster * c , short slot , char * cmd ,
359
- int cmd_len , REDIS_REPLY_TYPE rtype TSRMLS_DC );
359
+ int cmd_len , REDIS_REPLY_TYPE rtype );
360
360
361
361
PHP_REDIS_API int cluster_init_seeds (redisCluster * c , HashTable * ht_seeds );
362
- PHP_REDIS_API int cluster_map_keyspace (redisCluster * c TSRMLS_DC );
362
+ PHP_REDIS_API int cluster_map_keyspace (redisCluster * c );
363
363
PHP_REDIS_API void cluster_free_node (redisClusterNode * node );
364
364
365
365
PHP_REDIS_API char * * cluster_sock_read_multibulk_reply (RedisSock * redis_sock ,
366
- int * len TSRMLS_DC );
366
+ int * len );
367
367
368
368
/*
369
369
* Redis Cluster response handlers. Our response handlers generally take the
@@ -442,15 +442,15 @@ PHP_REDIS_API void cluster_client_list_resp(INTERNAL_FUNCTION_PARAMETERS,
442
442
443
443
/* MULTI BULK processing callbacks */
444
444
int mbulk_resp_loop (RedisSock * redis_sock , zval * z_result ,
445
- long long count , void * ctx TSRMLS_DC );
445
+ long long count , void * ctx );
446
446
int mbulk_resp_loop_raw (RedisSock * redis_sock , zval * z_result ,
447
- long long count , void * ctx TSRMLS_DC );
447
+ long long count , void * ctx );
448
448
int mbulk_resp_loop_zipstr (RedisSock * redis_sock , zval * z_result ,
449
- long long count , void * ctx TSRMLS_DC );
449
+ long long count , void * ctx );
450
450
int mbulk_resp_loop_zipdbl (RedisSock * redis_sock , zval * z_result ,
451
- long long count , void * ctx TSRMLS_DC );
451
+ long long count , void * ctx );
452
452
int mbulk_resp_loop_assoc (RedisSock * redis_sock , zval * z_result ,
453
- long long count , void * ctx TSRMLS_DC );
453
+ long long count , void * ctx );
454
454
455
455
#endif
456
456
0 commit comments