选择语言 :

 Bootstrap::_show_error

抛出系统启动时错误信息

null Bootstrap::_show_error( string $msg )

参数列表

参数 类型 描述 默认值
$msg string $msg
File: ./core/bootstrap.php
private static function _show_error($msg)
{
    # 尝试加载Core类
    if (class_exists('Core', true))
    {
        Core::show_500($msg);
    }

    header('Content-Type: text/html;charset=utf-8');

    if (isset($_SERVER['SERVER_PROTOCOL']))
    {
        $protocol = $_SERVER['SERVER_PROTOCOL'];
    }
    else
    {
        $protocol = 'HTTP/1.1';
    }

        // HTTP status line
    header($protocol.' 500 Internal Server Error');

    echo $msg;

    exit();
}