summaryrefslogtreecommitdiff
path: root/Zend/zend_compile.h
diff options
context:
space:
mode:
authorNikita Popov <nikita.ppv@gmail.com>2019-04-09 11:04:13 +0200
committerNikita Popov <nikita.ppv@gmail.com>2019-05-07 14:06:29 +0200
commit09ea55cb4e733f4e5221dfff5b66d6feb9695613 (patch)
tree62725d29a634e5b4a402185eb481b0650e365164 /Zend/zend_compile.h
parent68a7578243635c9dd83580ebbb32cdf5390a1984 (diff)
downloadphp-git-09ea55cb4e733f4e5221dfff5b66d6feb9695613.tar.gz
Deprecate left-associative ternary
Deprecate nesting ternary operators without explicit parentheses. RFC: https://wiki.php.net/rfc/ternary_associativity
Diffstat (limited to 'Zend/zend_compile.h')
-rw-r--r--Zend/zend_compile.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/Zend/zend_compile.h b/Zend/zend_compile.h
index e03408a572..7aa83ee3b6 100644
--- a/Zend/zend_compile.h
+++ b/Zend/zend_compile.h
@@ -994,6 +994,9 @@ static zend_always_inline int zend_check_arg_send_type(const zend_function *zf,
#define ZEND_ARRAY_NOT_PACKED (1<<1)
#define ZEND_ARRAY_SIZE_SHIFT 2
+/* Attribute for ternary inside parentheses */
+#define ZEND_PARENTHESIZED_CONDITIONAL 1
+
/* For "use" AST nodes and the seen symbol table */
#define ZEND_SYMBOL_CLASS (1<<0)
#define ZEND_SYMBOL_FUNCTION (1<<1)