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

Skip to content

Commit 21d6614

Browse files
Ensure that we have a string when adding k->v items. The value could be otherwise if it was unserialized (fixes issue phpredis#195)
1 parent 6510bd9 commit 21d6614

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

redis.c

+1
Original file line numberDiff line numberDiff line change
@@ -4654,6 +4654,7 @@ PHPAPI void array_zip_values_and_scores(RedisSock *redis_sock, zval *z_tab, int
46544654
}
46554655

46564656
/* get current value, a key */
4657+
convert_to_string(*z_key_pp);
46574658
hkey = Z_STRVAL_PP(z_key_pp);
46584659
hkey_len = Z_STRLEN_PP(z_key_pp);
46594660

0 commit comments

Comments
 (0)