Skip to content

zend_ast: Quote names of invalid variable names when exporting AST#22294

Merged
TimWolla merged 3 commits into
php:masterfrom
TimWolla:zend-ast-export-var-name-quote
Jun 14, 2026
Merged

zend_ast: Quote names of invalid variable names when exporting AST#22294
TimWolla merged 3 commits into
php:masterfrom
TimWolla:zend-ast-export-var-name-quote

Conversation

@TimWolla

Copy link
Copy Markdown
Member

Fixes #22292.

@iluuu1994

Copy link
Copy Markdown
Member

Looks good, but does this really need backporting?

@TimWolla

Copy link
Copy Markdown
Member Author

Looks good, but does this really need backporting?

“need” is a strong word. It is a bug (even if insignificant) and trivially applied to 8.4, so I figured I target 8.4. I'm gonna retarget.

@TimWolla TimWolla changed the base branch from PHP-8.4 to master June 14, 2026 10:37
@TimWolla

Copy link
Copy Markdown
Member Author

Windows failure is unrelated.

@TimWolla TimWolla merged commit 8f44bd9 into php:master Jun 14, 2026
17 of 18 checks passed
@TimWolla TimWolla deleted the zend-ast-export-var-name-quote branch June 14, 2026 11:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

AST pretty printing does not correctly handle invalid variable names

3 participants