Skip to content

[HttpKernel] DebugHandlersListener should always replace the existing exception handler #25835

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
Jan 18, 2018

Conversation

nicolas-grekas
Copy link
Member

@nicolas-grekas nicolas-grekas commented Jan 18, 2018

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 -

The current logic is inconsistent because replacing or not depends whether an ExceptionHandler is registered or not.
Embeds tests for the previous PR on the same topic, Debug component's side.

@linaori
Copy link
Contributor

linaori commented Jan 18, 2018

Fixes the scenario in prod mode with both the exception and error handlers pre-set, awesome! ❤️

@nicolas-grekas nicolas-grekas force-pushed the debug-x branch 3 times, most recently from b6fc69e to 0c0dd33 Compare January 18, 2018 21:21
@nicolas-grekas
Copy link
Member Author

HHVM failure fixed by adding a new exclusion group, to allow easily reproducing the issue while facebook/hhvm#8107 is open.

@nicolas-grekas nicolas-grekas merged commit a4ddcc2 into symfony:2.7 Jan 18, 2018
nicolas-grekas added a commit that referenced this pull request Jan 18, 2018
…he existing exception handler (nicolas-grekas)

This PR was merged into the 2.7 branch.

Discussion
----------

[HttpKernel] DebugHandlersListener should always replace the existing exception handler

| 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        | -

The current logic is inconsistent because replacing or not depends whether an ExceptionHandler is registered or not.
Embeds tests for the previous PR on the same topic, Debug component's side.

Commits
-------

a4ddcc2 [HttpKernel] DebugHandlersListener should always replace the existing exception handler
@nicolas-grekas nicolas-grekas deleted the debug-x branch January 30, 2018 09:47
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