Swoole\Protocol\HttpServer::onErrorShutDown PHP Method

onErrorShutDown() public method

捕获register_shutdown_function错误
public onErrorShutDown ( )
    function onErrorShutDown()
    {
        $error = error_get_last();
        if (!isset($error['type'])) {
            return;
        }
        switch ($error['type']) {
            case E_ERROR:
            case E_PARSE:
            case E_USER_ERROR:
            case E_CORE_ERROR:
            case E_COMPILE_ERROR:
                break;
            default:
                return;
        }
        $this->errorResponse($error);
    }