Skip to content

Add get_*_handler polyfills #521

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
merged 1 commit into from
Mar 31, 2025
Merged

Conversation

Fan2Shrek
Copy link
Contributor

@Fan2Shrek Fan2Shrek commented Mar 27, 2025

Here is the polyfill of newly implemented get_error_handler and get_exception_handler.
I have created the default files for PHP 8.5 polyfills.

The tests are taken from php/php-src#17693, but some cannot be completed due to new PHP 8 syntax.

There are some issues with the error handler in the tests, I can't figure out why. If someone can help, that would be great! 😅 This seems to be related to the TestListenerTrait, I think.

RFC

Copy link

@PhilDaiguille PhilDaiguille left a comment

Choose a reason for hiding this comment

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

LGTM

@nicolas-grekas
Copy link
Member

Thank you @Fan2Shrek.

@nicolas-grekas nicolas-grekas merged commit b333bd1 into symfony:1.x Mar 31, 2025
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants