Skip to content

[Debug] Fix catching fatal errors in case of nested error handlers #25408

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
Dec 11, 2017

Conversation

nicolas-grekas
Copy link
Member

@nicolas-grekas nicolas-grekas commented Dec 9, 2017

Q A
Branch? 2.7
Bug fix? yes
New feature? no
BC breaks? no
Deprecations? no
Tests pass? yes
Fixed tickets #8703, #16980
License MIT
Doc PR -

Fixing a bug from 2013 :)

@nicolas-grekas nicolas-grekas force-pushed the debug-fatal branch 5 times, most recently from 0c9fc0d to 20aa35a Compare December 9, 2017 16:16
@ostrolucky
Copy link
Contributor

ostrolucky commented Dec 9, 2017

I confirm fix works in Symfony 4.0. However, reproducer I posted in #8703 does not work in Symfony 2.7 project. Also I really think there should be a test for this, since this went under radar for so long.

edit: thank you for adding tests

@nicolas-grekas nicolas-grekas force-pushed the debug-fatal branch 4 times, most recently from 4bb950d to e18092f Compare December 9, 2017 17:02
@nicolas-grekas
Copy link
Member Author

Now with tests and green.

@fabpot
Copy link
Member

fabpot commented Dec 11, 2017

Thank you @nicolas-grekas.

@fabpot fabpot merged commit 27dc9a6 into symfony:2.7 Dec 11, 2017
fabpot added a commit that referenced this pull request Dec 11, 2017
…handlers (nicolas-grekas)

This PR was merged into the 2.7 branch.

Discussion
----------

[Debug] Fix catching fatal errors in case of nested error handlers

| Q             | A
| ------------- | ---
| Branch?       | 2.7
| Bug fix?      | yes
| New feature?  | no
| BC breaks?    | no
| Deprecations? | no
| Tests pass?   | yes
| Fixed tickets | #8703, #16980
| License       | MIT
| Doc PR        | -

Fixing a bug from 2013 :)

Commits
-------

27dc9a6 [Debug] Fix catching fatal errors in case of nested error handlers
@nicolas-grekas nicolas-grekas deleted the debug-fatal branch December 11, 2017 21:16
This was referenced Dec 15, 2017
This was referenced Jan 5, 2018
fabpot added a commit that referenced this pull request Jan 18, 2018
…l with fatal errors (nicolas-grekas)

This PR was merged into the 2.7 branch.

Discussion
----------

[Debug] Always decorate existing exception handlers to deal with fatal errors

| Q             | A
| ------------- | ---
| Branch?       | 2.7
| Bug fix?      | yes
| New feature?  | no
| BC breaks?    | no
| Deprecations? | no
| Tests pass?   | yes
| Fixed tickets | #25827
| License       | MIT
| Doc PR        | -

Decorating the exception is seamless, let's always do it and fix handling of fatal errors.
Related to #25408 also.

Commits
-------

205d7ae [Debug] Always decorate existing exception handlers to deal with fatal errors
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.

5 participants