Export visibility for promoted property (8.3)

This commit is contained in:
Niels Dossche 2024-12-12 21:29:29 +01:00
parent 8a649a8343
commit 160a4a65ad
No known key found for this signature in database
GPG key ID: B8A8AD166DF0E2E5
2 changed files with 3 additions and 0 deletions

2
NEWS
View file

@ -6,6 +6,8 @@ PHP NEWS
. Fixed bug GH-17106 (ZEND_MATCH_ERROR misoptimization). (ilutov) . Fixed bug GH-17106 (ZEND_MATCH_ERROR misoptimization). (ilutov)
. Fixed bug GH-17162 (zend_array_try_init() with dtor can cause engine UAF). . Fixed bug GH-17162 (zend_array_try_init() with dtor can cause engine UAF).
(nielsdos) (nielsdos)
. Fixed bug GH-17101 (AST->string does not reproduce constructor property
promotion correctly). (nielsdos)
- DBA: - DBA:
. Skip test if inifile is disabled. (orlitzky) . Skip test if inifile is disabled. (orlitzky)

View file

@ -2443,6 +2443,7 @@ simple_list:
if (ast->child[3]) { if (ast->child[3]) {
zend_ast_export_attributes(str, ast->child[3], indent, 0); zend_ast_export_attributes(str, ast->child[3], indent, 0);
} }
zend_ast_export_visibility(str, ast->attr);
if (ast->child[0]) { if (ast->child[0]) {
zend_ast_export_type(str, ast->child[0], indent); zend_ast_export_type(str, ast->child[0], indent);
smart_str_appendc(str, ' '); smart_str_appendc(str, ' ');