Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Zend: Fix anonymous closure names #19011

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
Girgias merged 2 commits into php:master from Girgias:closure-name-fix
Jul 3, 2025
Merged

Conversation

Copy link
Member

@Girgias Girgias commented Jul 2, 2025

Noticed this when looking at the test output of #18932 where the anonymous functions had a name of Closure::_invoke instead of the better names that @TimWolla introduced.

@DanielEScherzer can you pull this patch for the PR to see what the test messages are?

@Girgias Girgias requested a review from arnaud-lb July 2, 2025 19:03
@Girgias Girgias marked this pull request as ready for review July 2, 2025 20:02
@Girgias Girgias requested a review from dstogov as a code owner July 2, 2025 20:02
Copy link
Member

TimWolla commented Jul 2, 2025

Related: #18063.

Copy link
Member

@arnaud-lb arnaud-lb left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This looks good to me in general.

Regarding PFAs: With the patch applied, zend_get_callable_name_ex() returns the underlying function name (without scope). I will adjust this in the PFA branch.

Co-authored-by: Arnaud Le Blanc <365207+arnaud-lb@users.noreply.github.com>
@Girgias Girgias merged commit f91f80c into php:master Jul 3, 2025
1 check passed
@Girgias Girgias deleted the closure-name-fix branch July 3, 2025 11:01
Copy link
Member

Sorry I wasn't able to review this in time, I'll update #18932 with the results

Girgias reacted with thumbs up emoji

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Reviewers

@arnaud-lb arnaud-lb arnaud-lb approved these changes

@TimWolla TimWolla Awaiting requested review from TimWolla

@dstogov dstogov Awaiting requested review from dstogov dstogov is a code owner

Assignees
No one assigned
Projects
None yet
Milestone
No milestone
Development

Successfully merging this pull request may close these issues.

AltStyle によって変換されたページ (->オリジナル) /