You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
minor symfony#54189 [ErrorHandler] Fix exit code when an exception occurs and the exception handler has been unregistered (nicolas-grekas)
This PR was merged into the 5.4 branch.
Discussion
----------
[ErrorHandler] Fix exit code when an exception occurs and the exception handler has been unregistered
| Q | A
| ------------- | ---
| Branch? | 5.4
| Bug fix? | yes
| New feature? | no
| Deprecations? | no
| Issues | Fixsymfony#53946
| License | MIT
PHP 8.3 introduced a change (see php/php-src#13446) that highlighted a fragility in ErrorHandler::handleFatalError, leading to the linked issued. This fixes it.
What this doesn't fix is turning fatal errors into fake exceptions, which PHP 8.3 broke. For this, the fix is on the side of PHP.
Testing is not obvious 🙈
Commits
-------
f4ea95d [ErrorHandler] Fix exit code when an exception occurs and the exception handler has been unregistered
0 commit comments