Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/phpredis/phpredis.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormichael-grunder <michael.grunder@gmail.com>2013-08-11 22:29:29 +0400
committermichael-grunder <michael.grunder@gmail.com>2013-08-11 22:29:29 +0400
commit8443769dc3e9bb25bc13e069e1b939d9f0ee8991 (patch)
treefb34db2618bce1029db4e38145a07558366e9172 /redis_array.c
parenta80246122a3e30ff5ba49511b76342725acd43af (diff)
parent0ff393bdca1a470abb944c876cb4b33c1e4b0f5e (diff)
Merge remote-tracking branch 'mobli/develop' into feature/mobli_ra_changes
Conflicts: redis_array.c redis_array_impl.c redis_array_impl.h
Diffstat (limited to 'redis_array.c')
-rw-r--r--redis_array.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/redis_array.c b/redis_array.c
index 853db5ea..cd3f831f 100644
--- a/redis_array.c
+++ b/redis_array.c
@@ -197,6 +197,7 @@ PHP_METHOD(RedisArray, __construct)
zend_bool b_index = 0, b_autorehash = 0, b_pconnect = 0;
HashTable *hPrev = NULL, *hOpts = NULL;
long l_retry_interval = 0;
+ zend_bool b_lazy_connect = 0;
if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "z|a", &z0, &z_opts) == FAILURE) {
RETURN_FALSE;
@@ -255,6 +256,11 @@ PHP_METHOD(RedisArray, __construct)
}
}
}
+
+ /* extract lazy connect option. */
+ if(FAILURE != zend_hash_find(hOpts, "lazy_connect", sizeof("lazy_connect"), (void**)&zpData) && Z_TYPE_PP(zpData) == IS_BOOL) {
+ b_lazy_connect = Z_BVAL_PP(zpData);
+ }
}
/* extract either name of list of hosts from z0 */