summaryrefslogtreecommitdiff
path: root/Zend/zend_types.h
diff options
context:
space:
mode:
authorDmitry Stogov <dmitry@zend.com>2019-12-11 12:21:49 +0300
committerDmitry Stogov <dmitry@zend.com>2019-12-11 12:21:49 +0300
commit3280209c0312df000d558e029aa4e8c63912967a (patch)
tree4d05c4ba30e3d17cd803b08474f472ffe7acaf17 /Zend/zend_types.h
parent20ef51db22c46fd45976eb6d0b780c14022c8873 (diff)
downloadphp-git-3280209c0312df000d558e029aa4e8c63912967a.tar.gz
Addirional fix for bug #78918
Diffstat (limited to 'Zend/zend_types.h')
-rw-r--r--Zend/zend_types.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/Zend/zend_types.h b/Zend/zend_types.h
index 50634417c6..7b8c079c45 100644
--- a/Zend/zend_types.h
+++ b/Zend/zend_types.h
@@ -427,6 +427,7 @@ struct _zend_ast_ref {
/* internal types */
#define IS_INDIRECT 13
#define IS_PTR 14
+#define IS_ALIAS_PTR 15
#define _IS_ERROR 15
/* fake types used only for type hinting (Z_TYPE(zv) can not use them) */
@@ -964,6 +965,11 @@ static zend_always_inline uint32_t zval_gc_info(uint32_t gc_type_info) {
Z_TYPE_INFO_P(z) = IS_PTR; \
} while (0)
+#define ZVAL_ALIAS_PTR(z, p) do { \
+ Z_PTR_P(z) = (p); \
+ Z_TYPE_INFO_P(z) = IS_ALIAS_PTR; \
+ } while (0)
+
#define ZVAL_ERROR(z) do { \
Z_TYPE_INFO_P(z) = _IS_ERROR; \
} while (0)