Skip to content

Commit

Permalink
now I broke static properties 😂
Browse files Browse the repository at this point in the history
  • Loading branch information
withinboredom committed Feb 24, 2025
1 parent 3803151 commit b75a971
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 7 deletions.
2 changes: 1 addition & 1 deletion Zend/zend_compile.c
Original file line number Diff line number Diff line change
Expand Up @@ -6989,7 +6989,7 @@ static zend_type zend_compile_single_typename(zend_ast *ast)
}

return (zend_type) ZEND_TYPE_INIT_CODE(ast->attr, 0, 0);
} else if (ast->kind == ZEND_AST_CLASS_CONST) {
} else if (ast->kind == ZEND_AST_INNER_CLASS) {
zval cnz;
zend_try_compile_const_expr_resolve_class_name(&cnz, ast->child[0]);
zend_string *class_name = Z_STR(cnz);
Expand Down
2 changes: 1 addition & 1 deletion Zend/zend_vm_def.h
Original file line number Diff line number Diff line change
Expand Up @@ -1847,7 +1847,7 @@ ZEND_VM_INLINE_HELPER(zend_fetch_static_prop_helper, ANY, ANY, int type)
prop = &EG(uninitialized_zval);
}

if (type == BP_VAR_R || type == BP_VAR_IS) {
if (type == BP_VAR_R || BP_VAR_INNER_CLASS || type == BP_VAR_IS) {
ZVAL_COPY_DEREF(EX_VAR(opline->result.var), prop);
} else {
ZVAL_INDIRECT(EX_VAR(opline->result.var), prop);
Expand Down
6 changes: 1 addition & 5 deletions Zend/zend_vm_execute.h

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit b75a971

Please sign in to comment.