From 4e32254ec22c37d74a3a22a03a7cf981c1126b60 Mon Sep 17 00:00:00 2001 From: Pavlo Yatsukhnenko Date: Wed, 2 Aug 2017 13:02:07 +0300 Subject: Use ZSTR_VAL and ZSTR_LEN macroses to access zend_string fields --- redis_array_impl.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'redis_array_impl.c') diff --git a/redis_array_impl.c b/redis_array_impl.c index a551c9ab..a929fa20 100644 --- a/redis_array_impl.c +++ b/redis_array_impl.c @@ -590,7 +590,7 @@ ra_index_keys(zval *z_pairs, zval *z_redis TSRMLS_DC) { #endif if (zkey) { - ZVAL_STRINGL(z_new, zkey->val, zkey->len); + ZVAL_STRINGL(z_new, ZSTR_VAL(zkey), ZSTR_LEN(zkey)); } else { ZVAL_LONG(z_new, idx); } @@ -898,7 +898,7 @@ ra_move_zset(const char *key, int key_len, zval *z_from, zval *z_to, long ttl TS /* add value */ if (zkey) { - ZVAL_STRINGL(&z_zadd_args[i+1], zkey->val, zkey->len); + ZVAL_STRINGL(&z_zadd_args[i+1], ZSTR_VAL(zkey), ZSTR_LEN(zkey)); } else { ZVAL_LONG(&z_zadd_args[i+1], (long)idx); } -- cgit v1.2.3