Skip to content

Commit 160a4a6

Browse files
committed
Export visibility for promoted property (8.3)
1 parent 8a649a8 commit 160a4a6

File tree

2 files changed

+3
-0
lines changed

2 files changed

+3
-0
lines changed

NEWS

+2
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,8 @@ PHP NEWS
66
. Fixed bug GH-17106 (ZEND_MATCH_ERROR misoptimization). (ilutov)
77
. Fixed bug GH-17162 (zend_array_try_init() with dtor can cause engine UAF).
88
(nielsdos)
9+
. Fixed bug GH-17101 (AST->string does not reproduce constructor property
10+
promotion correctly). (nielsdos)
911

1012
- DBA:
1113
. Skip test if inifile is disabled. (orlitzky)

Zend/zend_ast.c

+1
Original file line numberDiff line numberDiff line change
@@ -2443,6 +2443,7 @@ static ZEND_COLD void zend_ast_export_ex(smart_str *str, zend_ast *ast, int prio
24432443
if (ast->child[3]) {
24442444
zend_ast_export_attributes(str, ast->child[3], indent, 0);
24452445
}
2446+
zend_ast_export_visibility(str, ast->attr);
24462447
if (ast->child[0]) {
24472448
zend_ast_export_type(str, ast->child[0], indent);
24482449
smart_str_appendc(str, ' ');

0 commit comments

Comments
 (0)