summaryrefslogtreecommitdiff
path: root/Zend/zend_compile.c
diff options
context:
space:
mode:
authorDmitry Stogov <dmitry@zend.com>2013-12-10 14:19:17 +0400
committerDmitry Stogov <dmitry@zend.com>2013-12-10 14:19:17 +0400
commit5a87b7ff39bbf427807c46d1e51e2654259ad394 (patch)
tree421d3f5a7655d5586f67d4c71561fba9eaf597f0 /Zend/zend_compile.c
parent5ad11174196760ad9aa4c94c08e0e58c72eb9cb9 (diff)
downloadphp-git-5a87b7ff39bbf427807c46d1e51e2654259ad394.tar.gz
Fixed bug #66252 (Problems in AST evaluation invalidating valid parent:: reference. Constant expessions have to be evaluated in context of defining class).
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 35f5f30cba..ab8609e410 100644
--- a/Zend/zend_compile.c
+++ b/Zend/zend_compile.c
@@ -7341,7 +7341,7 @@ void zend_do_constant_expression(znode *result, zend_ast *ast TSRMLS_DC) /* {{{
result->u.constant = *ast->u.val;
efree(ast);
} else if (zend_ast_is_ct_constant(ast)) {
- zend_ast_evaluate(&result->u.constant, ast TSRMLS_CC);
+ zend_ast_evaluate(&result->u.constant, ast, NULL TSRMLS_CC);
zend_ast_destroy(ast);
} else {
Z_TYPE(result->u.constant) = IS_CONSTANT_AST;