Commit 2e6e3187 by Carsten Brandt

added ErrorHandler::deRegister()

parent 8134af0e
...@@ -60,6 +60,15 @@ abstract class ErrorHandler extends Component ...@@ -60,6 +60,15 @@ abstract class ErrorHandler extends Component
} }
/** /**
* Deregister this error handler by restoring the PHP error and exception handlers.
*/
public function deRegister()
{
restore_error_handler();
restore_exception_handler();
}
/**
* Handles uncaught PHP exceptions. * Handles uncaught PHP exceptions.
* *
* This method is implemented as a PHP exception handler. * This method is implemented as a PHP exception handler.
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment