diff options
author | Xinchen Hui <laruence@gmail.com> | 2017-05-08 11:32:08 +0800 |
---|---|---|
committer | Xinchen Hui <laruence@gmail.com> | 2017-05-08 11:32:08 +0800 |
commit | 87d56a3d07a337269be2e80b67766b4e94120dd8 (patch) | |
tree | 76f8a7e73b10d2c34ecb4b7c0b396b5ee41ac32f /Zend/zend_compile.c | |
parent | 5c957b502e92ab32f44e449dd6ceed573cc65bf5 (diff) | |
download | php-git-87d56a3d07a337269be2e80b67766b4e94120dd8.tar.gz |
Fixed bug #74546 (SIGILL in ZEND_FETCH_CLASS_CONSTANT_SPEC_CONST_CONST_HANDLER())
Diffstat (limited to 'Zend/zend_compile.c')
-rw-r--r-- | Zend/zend_compile.c | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/Zend/zend_compile.c b/Zend/zend_compile.c index 9e0621d783..7fe8815e81 100644 --- a/Zend/zend_compile.c +++ b/Zend/zend_compile.c @@ -6669,8 +6669,11 @@ void zend_compile_class_const(znode *result, zend_ast *ast) /* {{{ */ return; } - zend_eval_const_expr(&class_ast); - zend_eval_const_expr(&const_ast); + zend_eval_const_expr(&ast->child[0]); + zend_eval_const_expr(&ast->child[1]); + + class_ast = ast->child[0]; + const_ast = ast->child[1]; if (class_ast->kind == ZEND_AST_ZVAL) { resolved_name = zend_resolve_class_name_ast(class_ast); |