Skip to content
This repository was archived by the owner on Jan 30, 2020. It is now read-only.

Fixes BC-Issue due to removed error-handler #47

Merged
merged 4 commits into from
May 23, 2016

Conversation

heiglandreas
Copy link
Member

This PR fixes a BC-Issue caused by removing the Zend\StdLib\ErrorHandler and replacing it with a class that does nothing. Out of the Box that caused some functions to throw errors instead of the expected Exceptions.

The replacement-class for the Zend\StdLib\ErrorHandler now sets (and removes) an empty errorHandler.

Thanks to @sgehrig for mentioning and reaching out!

This fixes #46

This commit fixes a BC-Issue caused by removing the
Zend\StdLib\ErrorHandler and replacing it with a class that does
nothing. Out of the Box that caused some functions to throw errors
instead of the expected Exceptions.

The replacement-class for the Zend\StdLib\ErrorHandler now sets (and
removes) an empty errorHandler.

Thanks to @sgehrig for mentioning and reaching out!
@Ocramius
Copy link
Member

@heiglandreas can you add a test case for this scenario? Something that triggers a notice would be OK, and just having the notice suppressed in the test would be sufficient, IMO

@Ocramius Ocramius added the bug label Apr 29, 2016
@heiglandreas
Copy link
Member Author

In the bootstrap.php there is an ErrorHandler injected into the ErrorHandler. Due to that the issue didn't surface in the first place. I'll remove that line to make sure everything works out of the box. That should then be sufficient. Or don't you think?

@Ocramius
Copy link
Member

@heiglandreas I mean a test specific for the ErrorHandler class

@heiglandreas
Copy link
Member Author

Will do so ;)

@heiglandreas heiglandreas merged commit baaa8e1 into zendframework:master May 23, 2016
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

BC with default ErrorHandler
2 participants