diff options
| author | Nikita Popov <nikita.ppv@gmail.com> | 2019-04-09 11:04:13 +0200 |
|---|---|---|
| committer | Nikita Popov <nikita.ppv@gmail.com> | 2019-05-07 14:06:29 +0200 |
| commit | 09ea55cb4e733f4e5221dfff5b66d6feb9695613 (patch) | |
| tree | 62725d29a634e5b4a402185eb481b0650e365164 /Zend/zend_compile.h | |
| parent | 68a7578243635c9dd83580ebbb32cdf5390a1984 (diff) | |
| download | php-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.h | 3 |
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) |
