Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 4cf3414

Browse files
authored
Merge pull request #1280 from janic716/dev
the element of z_seeds may be a reference on php7
2 parents 367bc6a + 1e63717 commit 4cf3414

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

cluster_library.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -894,6 +894,7 @@ cluster_init_seeds(redisCluster *cluster, HashTable *ht_seeds) {
894894
for (i = 0; i < count; i++) {
895895
if ((z_seed = z_seeds[i]) == NULL) continue;
896896

897+
ZVAL_DEREF(z_seed);
897898
/* Has to be a string */
898899
if (Z_TYPE_P(z_seed) != IS_STRING) continue;
899900

0 commit comments

Comments
 (0)