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_impl.c
parent7c140714e3d3083162fdaea09fbd7e080ee156ac (diff)
Use ZSTR_VAL and ZSTR_LEN macroses to access zend_string fields
Diffstat (limited to 'redis_array_impl.c')
-rw-r--r--redis_array_impl.c4
1 files changed, 2 insertions, 2 deletions
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);
}