Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Avoid double reporting due to ErrorExceptions #574

Merged
merged 7 commits into from
Mar 21, 2018
Merged

Conversation

Jean85
Copy link
Collaborator

@Jean85 Jean85 commented Mar 20, 2018

This PR adds two regression PHPT tests to solve the issue of double-reporting errors under PHP 7+, due to the rethrowing of E_ERROR as an ErrorException

I'm not sure how to solve this issue, but at least this is a start. Thanks to @mfb for giving me the repro scripts in #552 (comment)

@Jean85 Jean85 self-assigned this Mar 20, 2018
@Jean85 Jean85 force-pushed the avoid-double-reporting branch from aecf7e3 to c553978 Compare March 21, 2018 10:31
@Jean85 Jean85 changed the title [WIP] Avoid double reporting due to ErrorExceptions Avoid double reporting due to ErrorExceptions Mar 21, 2018
Copy link
Collaborator

@stayallive stayallive left a comment

Choose a reason for hiding this comment

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

This is not a bad way to go actually. 👍

The exception thrown without a stack frame is unfortunate, but I think not a big problem.

@Jean85 Jean85 merged commit 4b4131a into master Mar 21, 2018
@Jean85 Jean85 deleted the avoid-double-reporting branch March 21, 2018 11:22
@Jean85 Jean85 mentioned this pull request May 3, 2018
27 tasks
# for free to join this conversation on GitHub. Already have an account? # to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants