Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Use try/finally to restore error handlers #43778

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

Conversation

derrabus
Copy link
Member

Q A
Branch? 5.4
Bug fix? no
New feature? no
Deprecations? no
Tickets N/A
License MIT
Doc PR N/A

This PR attempts to make some code dealing with temporary error handlers a bit more robust by making sure the old error handler is always restored. A forgotten error handler is pretty hard to debug, so I'd like our code to be a it more defensive here.

Copy link
Member

@nicolas-grekas nicolas-grekas left a comment

Choose a reason for hiding this comment

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

(please fix fabbot and feel free to merge after :) )

@derrabus derrabus force-pushed the improvement/finally-restore-error-handler branch from f199dff to 057716c Compare October 27, 2021 13:15
@derrabus derrabus merged commit daa3248 into symfony:5.4 Oct 27, 2021
@derrabus derrabus deleted the improvement/finally-restore-error-handler branch October 27, 2021 13:17
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.

4 participants