zendframework / zend-stdlib

Stdlib component from Zend Framework
BSD 3-Clause "New" or "Revised" License
384 stars 76 forks source link

Zend\Stdlib\ErrorHandler breaks custom error handlers #78

Closed falkenhawk closed 6 years ago

falkenhawk commented 7 years ago

Cross-referenced an already submitted issue, as the bug in php has still not been fixed and the issue is still relevant: zendframework/zendframework#7497

weierophinney commented 6 years ago

And, as noted: this is a PHP bug, not a framework one. If we change how ErrorHandler calls set_error_handler(), we potentially end up triggering the handler for error levels it should not handle.

falkenhawk commented 6 years ago

So you think it's better leave it unusable as it is now :D this php bug does not look like to be fixed any time soon. Anyway, to any seeker who reaches this page looking for a solution to the problem - feel free to use my fork https://github.com/ovos/zend-stdlib/