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-05-09 00:05:41 +0300
committerPavlo Yatsukhnenko <yatsukhnenko@gmail.com>2017-05-09 23:17:20 +0300
commitad45964150d0f8e96d2290479e49e1225d6db75c (patch)
tree4952576093472d32f17c3cf9c862ffd2eaa78979 /common.h
parent8a50a14bfceb0ba7a19ae6fea01ed5c7eb3b120e (diff)
Using ZVAL_DEREF macros for dereference input variables.
This PR fixes issues #946 and #1166.
Diffstat (limited to 'common.h')
-rw-r--r--common.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/common.h b/common.h
index 029d912b..1ed857c3 100644
--- a/common.h
+++ b/common.h
@@ -373,6 +373,9 @@ typedef int strlen_t;
#define PHP_FE_END { NULL, NULL, NULL }
#endif
+/* References don't need any actions */
+#define ZVAL_DEREF(v) PHPREDIS_NOTUSED(v)
+
#else
#include <zend_smart_str.h>
#include <ext/standard/php_smart_string.h>