1
0
mirror of https://github.com/php/php-src.git synced 2026-03-24 00:02:20 +01:00

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
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-17162 (zend_array_try_init() with dtor can cause engine UAF).
(nielsdos)
. Fixed bug GH-17101 (AST->string does not reproduce constructor property
promotion correctly). (nielsdos)
- DBA:
. Skip test if inifile is disabled. (orlitzky)

View File

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