Skip to content
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

[Debug] less intrusive work around for https://bugs.php.net/54275 #10799

Merged
merged 1 commit into from
Apr 28, 2014

Conversation

nicolas-grekas
Copy link
Member

Q A
Bug fix? yes
New feature? no
BC breaks? no
Deprecations? no
Tests pass? yes
Fixed tickets #10787, #10292
License MIT
Doc PR none
  • This PR supersedes the behavior introduced in [Debug] Handled errors #10725 :
    Instead of building some complicated code to work around https://bugs.php.net/54275, the code is now as
    straightforward as possible, with a conditional fallback work around.
  • The handling of fatal errors is also made more robust/fail-safe.
  • Last but not least, ErrorsLoggerListener and FatalErrorExceptionsListener are now registered earlier and
    are now cleaning up their handler/logger once set to prevent setting again and again for sub-requests
    (+remove one refcount for these handler and logger).

*
* @internal
*/
class ErrorHandlerCanary
Copy link
Member

Choose a reason for hiding this comment

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

why Canary ?

Copy link
Member Author

Choose a reason for hiding this comment

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

Copy link
Member

Choose a reason for hiding this comment

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

OK, fine for me

@stof
Copy link
Member

stof commented Apr 28, 2014

this looks much better than the previous implementation. That's great

@fabpot
Copy link
Member

fabpot commented Apr 28, 2014

Thank you @nicolas-grekas.

@fabpot fabpot merged commit d7a186f into symfony:master Apr 28, 2014
fabpot added a commit that referenced this pull request Apr 28, 2014
…t/54275 (nicolas-grekas)

This PR was merged into the 2.5-dev branch.

Discussion
----------

[Debug] less intrusive work around for https://bugs.php.net/54275

| Q             | A
| ------------- | ---
| Bug fix?      | yes
| New feature?  | no
| BC breaks?    | no
| Deprecations? | no
| Tests pass?   | yes
| Fixed tickets | #10787, #10292
| License       | MIT
| Doc PR        | none

- This PR supersedes the behavior introduced in #10725 :
  Instead of building some complicated code to work around https://bugs.php.net/54275, the code is now as
  straightforward as possible, with a conditional fallback work around.
- The handling of fatal errors is also made more robust/fail-safe.
- Last but not least, ErrorsLoggerListener and FatalErrorExceptionsListener are now registered earlier and
  are now cleaning up their handler/logger once set to prevent setting again and again for sub-requests
  (+remove one refcount for these handler and logger).

Commits
-------

d7a186f [Debug] less intrusive work around for https://bugs.php.net/54275
@nicolas-grekas nicolas-grekas deleted the fix-for-10787 branch April 29, 2014 10:28
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.

None yet

3 participants