Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/phpredis/phpredis.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPavlo Yatsukhnenko <yatsukhnenko@gmail.com>2017-08-02 13:02:07 +0300
committerPavlo Yatsukhnenko <yatsukhnenko@gmail.com>2017-08-02 13:20:30 +0300
commit4e32254ec22c37d74a3a22a03a7cf981c1126b60 (patch)
treecd6ea53db874afcff400ace99421e4f87032961b /redis_array.c
parent7c140714e3d3083162fdaea09fbd7e080ee156ac (diff)
Use ZSTR_VAL and ZSTR_LEN macroses to access zend_string fields
Diffstat (limited to 'redis_array.c')
-rw-r--r--redis_array.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/redis_array.c b/redis_array.c
index d88bd2d0..bdb65cad 100644
--- a/redis_array.c
+++ b/redis_array.c
@@ -1054,8 +1054,8 @@ PHP_METHOD(RedisArray, mset)
ZEND_HASH_FOREACH_KEY_VAL(h_keys, idx, zkey, data) {
/* If the key isn't a string, make a string representation of it */
if (zkey) {
- key_len = zkey->len;
- key = zkey->val;
+ key_len = ZSTR_LEN(zkey);
+ key = ZSTR_VAL(zkey);
} else {
key_len = snprintf(kbuf, sizeof(kbuf), "%lu", idx);
key = kbuf;