Browse Source

added ErrorHandler::deRegister()

tags/2.0.0-rc
Carsten Brandt 11 years ago
parent
commit
2e6e318720
  1. 9
      framework/base/ErrorHandler.php

9
framework/base/ErrorHandler.php

@ -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.
*
* This method is implemented as a PHP exception handler.

Loading…
Cancel
Save