mirror of
https://github.com/php/php-src.git
synced 2024-09-21 09:57:23 +00:00
Move setting of CG(zend_lineno)
This way it will also work for zend_ast_create_zval
This commit is contained in:
parent
848a6e5035
commit
fb670f2b80
@ -9995,6 +9995,8 @@ static void zend_compile_const_expr_const(zend_ast **ast_ptr) /* {{{ */
|
||||
zval result;
|
||||
zend_string *resolved_name;
|
||||
|
||||
CG(zend_lineno) = zend_ast_get_lineno(ast);
|
||||
|
||||
resolved_name = zend_resolve_const_name(
|
||||
orig_name, name_ast->attr, &is_fully_qualified);
|
||||
|
||||
@ -10005,7 +10007,6 @@ static void zend_compile_const_expr_const(zend_ast **ast_ptr) /* {{{ */
|
||||
return;
|
||||
}
|
||||
|
||||
CG(zend_lineno) = zend_ast_get_lineno(ast);
|
||||
zend_ast_destroy(ast);
|
||||
*ast_ptr = zend_ast_create_constant(resolved_name,
|
||||
!is_fully_qualified && FC(current_namespace) ? IS_CONSTANT_UNQUALIFIED_IN_NAMESPACE : 0);
|
||||
|
Loading…
Reference in New Issue
Block a user