Skip to content

Commit 42581a1

Browse files
chenjianyatsukhnenko
authored andcommitted
the element of z_seeds may be a reference on php7
1 parent 62ddecf commit 42581a1

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

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)