lithium\core\ErrorHandler::stop PHP Method

stop() public static method

Unooks ErrorHandler's exception and error handlers, and restores PHP's defaults. May have unexpected results if it is not matched with a prior call to run(), or if other error handlers are set after a call to run().
public static stop ( )
    public static function stop()
    {
        restore_error_handler();
        restore_exception_handler();
        static::$_isRunning = false;
    }

Usage Example

Beispiel #1
0
 public function tearDown()
 {
     if (ErrorHandler::isRunning()) {
         ErrorHandler::stop();
     }
 }
All Usage Examples Of lithium\core\ErrorHandler::stop