public function unhandle()
    {
        $is_unhandled = false;
        if ($this->is_handling && !$this->last_error) {
            if ($this->prev_exception_handler) {
                set_exception_handler($this->prev_exception_handler);
                $this->prev_exception_handler = null;
            }
            if ($this->prev_error_handler) {
                set_error_handler($this->prev_error_handler);
                $this->prev_error_handler = null;
            }
            $this->is_handling = false;
            $is_unhandled      = true;
        }

        return $is_unhandled;
    }
public function unhandle()
    {
        $is_unhandled = false;
        if ($this->is_handling && !$this->last_error) {
            if ($this->prev_exception_handler) {
                set_exception_handler($this->prev_exception_handler);
                $this->prev_exception_handler = null;
            }
            if ($this->prev_error_handler) {
                set_error_handler($this->prev_error_handler);
                $this->prev_error_handler = null;
            }
            $this->is_handling = false;
            $is_unhandled      = true;
        }

        return $is_unhandled;
    }
public function unhandle ( ) { $ is_unhandled = false ; if ( $ this -> is_handling && ! $ this -> last_error ) { if ( $ this -> prev_exception_handler ) { set_exception_handler ( $ this -> prev_exception_handler ) ; $ this -> prev_exception_handler = null ; } if ( $ this -> prev_error_handler ) { set_error_handler ( $ this -> prev_error_handler ) ; $ this -> prev_error_handler = null ; } $ this -> is_handling = false ; $ is_unhandled = true ; } return $ is_unhandled ; }
Stop handling errors

Restores the original uncaught exception handler, core error handler, and stops
handling errors.

Returns true when the original error handling state has been restored, or false when
the class was not handling errors. Possibly because ::handle() was never called, or
::unhandle() was already called, or an error has already been handled.

@return bool
Stop handling errors