summaryrefslogtreecommitdiff
path: root/Zend/zend_compile.c
diff options
context:
space:
mode:
authorMárcio Almada <marcio3w@gmail.com>2016-04-17 04:27:15 -0400
committerBob Weinand <bobwei9@hotmail.com>2016-04-21 01:22:28 +0200
commit9f3eab44dfc99ac032dbfc84418925ee3adcd175 (patch)
treed73c61fdd157be90114f21458c2e7a73c0ca4612 /Zend/zend_compile.c
parent85867268fdae2b742ce44bc76b7b57053d5063a8 (diff)
downloadphp-git-9f3eab44dfc99ac032dbfc84418925ee3adcd175.tar.gz
allow null coalescing (??) on constant expressions
Diffstat (limited to 'Zend/zend_compile.c')
-rw-r--r--Zend/zend_compile.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/Zend/zend_compile.c b/Zend/zend_compile.c
index 89fd0e520e..18836d6418 100644
--- a/Zend/zend_compile.c
+++ b/Zend/zend_compile.c
@@ -6833,7 +6833,7 @@ zend_bool zend_is_allowed_in_const_expr(zend_ast_kind kind) /* {{{ */
|| kind == ZEND_AST_CONDITIONAL || kind == ZEND_AST_DIM
|| kind == ZEND_AST_ARRAY || kind == ZEND_AST_ARRAY_ELEM
|| kind == ZEND_AST_CONST || kind == ZEND_AST_CLASS_CONST
- || kind == ZEND_AST_MAGIC_CONST;
+ || kind == ZEND_AST_MAGIC_CONST || kind == ZEND_AST_COALESCE;
}
/* }}} */