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>2019-01-15 11:07:30 +0300
committerPavel Yatsukhnenko <p.yatsukhnenko@digitalscreens.com.ua>2019-01-18 00:05:52 +0300
commitc5994f2a42b8a348af92d3acb4edff1328ad8ce1 (patch)
treeb2f4cdc3d7986860ef4bf5e311001820cb57bd2b /common.h
parente145f8582ab9aa5bb6e986298be2e47d8063c8a0 (diff)
RedisCluster auth
Diffstat (limited to 'common.h')
-rw-r--r--common.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/common.h b/common.h
index 9642fdd4..e17d760f 100644
--- a/common.h
+++ b/common.h
@@ -68,6 +68,8 @@ zend_string_realloc(zend_string *s, size_t len, int persistent)
return zstr;
}
+#define zend_string_copy(s) zend_string_init(ZSTR_VAL(s), ZSTR_LEN(s), 0)
+
#define zend_string_equal_val(s1, s2) !memcmp(ZSTR_VAL(s1), ZSTR_VAL(s2), ZSTR_LEN(s1))
#define zend_string_equal_content(s1, s2) (ZSTR_LEN(s1) == ZSTR_LEN(s2) && zend_string_equal_val(s1, s2))
#define zend_string_equals(s1, s2) (s1 == s2 || zend_string_equal_content(s1, s2))