We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 74b524f commit 2f8405cCopy full SHA for 2f8405c
Zend/zend_compile.c
@@ -11233,7 +11233,7 @@ static void zend_compile_const_expr_new(zend_ast **ast_ptr)
11233
zval *class_ast_zv = zend_ast_get_zval(class_ast);
11234
zval_ptr_dtor_nogc(class_ast_zv);
11235
ZVAL_STR(class_ast_zv, class_name);
11236
- class_ast->attr = fetch_type << ZEND_CONST_EXPR_NEW_FETCH_TYPE_SHIFT;
+ class_ast->attr = (fetch_type << ZEND_CONST_EXPR_NEW_FETCH_TYPE_SHIFT) | (fetch_type ? ZEND_NAME_NOT_FQ : ZEND_NAME_FQ);
11237
}
11238
11239
static void zend_compile_const_expr_closure(zend_ast **ast_ptr)
0 commit comments