@@ -30,13 +30,13 @@ extern int le_redis_sock;
30
30
extern zend_class_entry * redis_ce ;
31
31
32
32
RedisArray *
33
- ra_load_hosts (RedisArray * ra , HashTable * hosts , long retry_interval , zend_bool lazy_connect TSRMLS_DC )
33
+ ra_load_hosts (RedisArray * ra , HashTable * hosts , long retry_interval , zend_bool b_lazy_connect TSRMLS_DC )
34
34
{
35
35
int i , host_len , id ;
36
36
int count = zend_hash_num_elements (hosts );
37
37
char * host , * p ;
38
38
short port ;
39
- zval * * zpData , * z_args , z_cons , z_ret ;
39
+ zval * * zpData , z_cons , z_ret ;
40
40
RedisSock * redis_sock = NULL ;
41
41
42
42
/* function calls on the Redis object */
@@ -70,9 +70,9 @@ ra_load_hosts(RedisArray *ra, HashTable *hosts, long retry_interval, zend_bool l
70
70
call_user_function (& redis_ce -> function_table , & ra -> redis [i ], & z_cons , & z_ret , 0 , NULL TSRMLS_CC );
71
71
72
72
/* create socket */
73
- redis_sock = redis_sock_create (host , host_len , port , 0 , ra -> pconnect , NULL , retry_interval , lazy_connect );
73
+ redis_sock = redis_sock_create (host , host_len , port , 0 , ra -> pconnect , NULL , retry_interval , b_lazy_connect );
74
74
75
- if (!lazy_connect )
75
+ if (!b_lazy_connect )
76
76
{
77
77
/* connect */
78
78
redis_sock_server_open (redis_sock , 1 TSRMLS_CC );
@@ -269,7 +269,7 @@ RedisArray *ra_load_array(const char *name TSRMLS_DC) {
269
269
}
270
270
271
271
/* create RedisArray object */
272
- ra = ra_make_array (hHosts , z_fun , z_dist , hPrev , b_index , l_retry_interval , b_pconnect , b_lazy_connect TSRMLS_CC );
272
+ ra = ra_make_array (hHosts , z_fun , z_dist , hPrev , b_index , b_pconnect , l_retry_interval , b_lazy_connect TSRMLS_CC );
273
273
ra -> auto_rehash = b_autorehash ;
274
274
275
275
/* cleanup */
@@ -294,7 +294,7 @@ RedisArray *ra_load_array(const char *name TSRMLS_DC) {
294
294
}
295
295
296
296
RedisArray *
297
- ra_make_array (HashTable * hosts , zval * z_fun , zval * z_dist , HashTable * hosts_prev , zend_bool b_index , long retry_interval , zend_bool b_pconnect , zend_bool b_lazy_connect TSRMLS_DC ) {
297
+ ra_make_array (HashTable * hosts , zval * z_fun , zval * z_dist , HashTable * hosts_prev , zend_bool b_index , zend_bool b_pconnect , long retry_interval , zend_bool b_lazy_connect TSRMLS_DC ) {
298
298
299
299
int count = zend_hash_num_elements (hosts );
300
300
@@ -312,10 +312,10 @@ ra_make_array(HashTable *hosts, zval *z_fun, zval *z_dist, HashTable *hosts_prev
312
312
/* init array data structures */
313
313
ra_init_function_table (ra );
314
314
315
- if (NULL == ra_load_hosts (ra , hosts , retry_interval , lazy_connect TSRMLS_CC )) {
315
+ if (NULL == ra_load_hosts (ra , hosts , retry_interval , b_lazy_connect TSRMLS_CC )) {
316
316
return NULL ;
317
317
}
318
- ra -> prev = hosts_prev ? ra_make_array (hosts_prev , z_fun , z_dist , NULL , b_index , retry_interval , b_pconnect , b_lazy_connect TSRMLS_CC ) : NULL ;
318
+ ra -> prev = hosts_prev ? ra_make_array (hosts_prev , z_fun , z_dist , NULL , b_index , b_pconnect , retry_interval , b_lazy_connect TSRMLS_CC ) : NULL ;
319
319
320
320
/* copy function if provided */
321
321
if (z_fun ) {
0 commit comments