Skip to content

zend_test: Fix function and constant imports in compile_to_ast and add support for grouping - #24418

Open
mainframe98 wants to merge 1 commit into
php:PHP-8.4from
mainframe98:zend-test-compile-to-ast-grouped-use-support
Open

mainframe98 wants to merge 1 commit into
php:PHP-8.4from
mainframe98:zend-test-compile-to-ast-grouped-use-support

Conversation

@mainframe98

@mainframe98 mainframe98 commented Oct 18, 2026 •

Copy link
Copy Markdown

While writing a test for it, I discovered the logic for printing
the AST representation of use statements was broken and grouping
did not work. That has been fixed and incorporated into the test.

@ndossche

Copy link
Copy Markdown
Member

So this is actually a bugfix, but your PR title doesn't imply that.
Can you please retitle your PR, and target branch PHP-8.4 please? (Since that's the lowest supported bugfix branch)

@mainframe98
mainframe98 force-pushed the zend-test-compile-to-ast-grouped-use-support branch from c4c298b to 782d13d Compare October 20, 2026 17:15
@mainframe98
mainframe98 changed the base branch from master to PHP-8.4 October 20, 2026 17:15
…d support for grouping

While writing a test for it, I discovered the logic for printing
the AST representation of use statements was broken and grouping
did not work. That has been fixed and incorporated into the test.
@mainframe98
mainframe98 force-pushed the zend-test-compile-to-ast-grouped-use-support branch from 782d13d to 56214fb Compare October 20, 2026 17:18
@mainframe98 mainframe98 changed the title zend_test: support grouped use statements in compile_to_ast zend_test: Fix function and constant imports in compile_to_ast and add support for grouping Oct 20, 2026
@mainframe98

Copy link
Copy Markdown
Author

So this is actually a bugfix, but your PR title doesn't imply that.

I wasn't sure if compile_to_ast even counts as a "public" API, so I figured targeting master was the safest bet. I hope this is better.

@mainframe98

Copy link
Copy Markdown
Author

I wasn't aware that zend_test_compile_to_ast is that new, but apparently it debuted in #16952, which is PHP 8.5 or newer. Should I split out the test into a separate PR targeting PHP 8.5 or just master?

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.

2 participants