Respect error_reporting() when registering error handler.
Merge pull request #130 from F14Z/master

Respect error_reporting() when registering error handler.