diff options
author | Pavlo Yatsukhnenko <yatsukhnenko@gmail.com> | 2017-08-02 13:02:07 +0300 |
---|---|---|
committer | Pavlo Yatsukhnenko <yatsukhnenko@gmail.com> | 2017-08-02 13:20:30 +0300 |
commit | 4e32254ec22c37d74a3a22a03a7cf981c1126b60 (patch) | |
tree | cd6ea53db874afcff400ace99421e4f87032961b /redis_array.c | |
parent | 7c140714e3d3083162fdaea09fbd7e080ee156ac (diff) |
Use ZSTR_VAL and ZSTR_LEN macroses to access zend_string fields
Diffstat (limited to 'redis_array.c')
-rw-r--r-- | redis_array.c | 4 |
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; |