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:
authorPavlo Yatsukhnenko <yatsukhnenko@users.noreply.github.com>2017-12-06 23:34:17 +0300
committerGitHub <noreply@github.com>2017-12-06 23:34:17 +0300
commit4cf34143c4009ee240245e765a9109472b950dbe (patch)
tree5013be135a519d35101e48c535ee304d57d11497 /cluster_library.c
parent367bc6aac9321f564ecd7ad3462ed3fa5a17896e (diff)
parent1e63717a7d7562433ca10d14620bdd1c9431a5d7 (diff)
Merge pull request #1280 from janic716/dev
the element of z_seeds may be a reference on php7
Diffstat (limited to 'cluster_library.c')
-rw-r--r--cluster_library.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/cluster_library.c b/cluster_library.c
index da2a0e1d..0a3adf2d 100644
--- a/cluster_library.c
+++ b/cluster_library.c
@@ -894,6 +894,7 @@ cluster_init_seeds(redisCluster *cluster, HashTable *ht_seeds) {
for (i = 0; i < count; i++) {
if ((z_seed = z_seeds[i]) == NULL) continue;
+ ZVAL_DEREF(z_seed);
/* Has to be a string */
if (Z_TYPE_P(z_seed) != IS_STRING) continue;