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

Skip to content

Commit 1e63717

Browse files
author
chenjian
committed
the element of z_seeds may be a reference on php7
1 parent 70b3c93 commit 1e63717

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
z_seed = z_seeds[i];
896896

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

0 commit comments

Comments
 (0)