Respect error_reporting() when registering error handler.