Skip to content

Commit

Permalink
the element of z_seeds may be a reference on php7
Browse files Browse the repository at this point in the history
  • Loading branch information
chenjian committed Dec 6, 2017
1 parent 70b3c93 commit 1e63717
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions cluster_library.c
Original file line number Diff line number Diff line change
Expand Up @@ -894,6 +894,7 @@ cluster_init_seeds(redisCluster *cluster, HashTable *ht_seeds) {
for (i = 0; i < count; i++) {
z_seed = z_seeds[i];

ZVAL_DEREF(z_seed);
/* Has to be a string */
if (z_seed == NULL || Z_TYPE_P(z_seed) != IS_STRING)
continue;
Expand Down

0 comments on commit 1e63717

Please sign in to comment.