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>2016-11-17 15:55:48 +0300
committerPavlo Yatsukhnenko <yatsukhnenko@gmail.com>2016-11-18 19:57:44 +0300
commit6d6deae573658048e33219c73cc07624f6dfdbb7 (patch)
tree786fc55928792536034edf7c3279097e150b77af /cluster_library.c
parent6d37af022b3c54edd5a02303a06d0f06a0cbe30b (diff)
TravisCI: clang + refactoring
Diffstat (limited to 'cluster_library.c')
-rw-r--r--cluster_library.c9
1 files changed, 2 insertions, 7 deletions
diff --git a/cluster_library.c b/cluster_library.c
index feb4f09e..6a70444c 100644
--- a/cluster_library.c
+++ b/cluster_library.c
@@ -2242,15 +2242,10 @@ PHP_REDIS_API void cluster_mset_resp(INTERNAL_FUNCTION_PARAMETERS, redisCluster
// Set our return if it's the last call
if(mctx->last) {
-#if (PHP_MAJOR_VERSION < 7)
- zend_bool bval = Z_LVAL_P(mctx->z_multi);
-#else
- zend_bool bval = (Z_TYPE_P(mctx->z_multi) == IS_TRUE);
-#endif
if(CLUSTER_IS_ATOMIC(c)) {
- ZVAL_BOOL(return_value, bval);
+ ZVAL_BOOL(return_value, zval_is_true(mctx->z_multi));
} else {
- add_next_index_bool(&c->multi_resp, bval);
+ add_next_index_bool(&c->multi_resp, zval_is_true(mctx->z_multi));
}
efree(mctx->z_multi);
}