We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 848a6e5 commit fb670f2Copy full SHA for fb670f2
Zend/zend_compile.c
@@ -9995,6 +9995,8 @@ static void zend_compile_const_expr_const(zend_ast **ast_ptr) /* {{{ */
9995
zval result;
9996
zend_string *resolved_name;
9997
9998
+ CG(zend_lineno) = zend_ast_get_lineno(ast);
9999
+
10000
resolved_name = zend_resolve_const_name(
10001
orig_name, name_ast->attr, &is_fully_qualified);
10002
@@ -10005,7 +10007,6 @@ static void zend_compile_const_expr_const(zend_ast **ast_ptr) /* {{{ */
10005
10007
return;
10006
10008
}
10009
- CG(zend_lineno) = zend_ast_get_lineno(ast);
10010
zend_ast_destroy(ast);
10011
*ast_ptr = zend_ast_create_constant(resolved_name,
10012
!is_fully_qualified && FC(current_namespace) ? IS_CONSTANT_UNQUALIFIED_IN_NAMESPACE : 0);
0 commit comments