public static function handleShutdown($forceKill = false)
    {
        $err = error_get_last();

        try
        {
            static::handleError($err['type'], $err['message'], $err['file'], $err['line']);
        }
        catch (\Error $ex)
        {
            echo call_user_func(static::$errHandler, $ex) . PHP_EOL;
        }
        catch (\Exception $ex)
        {
            echo call_user_func(static::$excHandler, $ex) . PHP_EOL;
        }

        if ($forceKill)
        {
            posix_kill(posix_getpid(), 9);
        }
    }
public static function handleShutdown($forceKill = false)
    {
        $err = error_get_last();

        try
        {
            static::handleError($err['type'], $err['message'], $err['file'], $err['line']);
        }
        catch (\Error $ex)
        {
            echo call_user_func(static::$errHandler, $ex) . PHP_EOL;
        }
        catch (\Exception $ex)
        {
            echo call_user_func(static::$excHandler, $ex) . PHP_EOL;
        }

        if ($forceKill)
        {
            posix_kill(posix_getpid(), 9);
        }
    }
public static function handleShutdown ( $ forceKill = false ) { $ err = error_get_last ( ) ; try { static :: handleError ( $ err [ 'type' ] , $ err [ 'message' ] , $ err [ 'file' ] , $ err [ 'line' ] ) ; } catch ( \ Error $ ex ) { echo call_user_func ( static :: $ errHandler , $ ex ) . PHP_EOL ; } catch ( \ Exception $ ex ) { echo call_user_func ( static :: $ excHandler , $ ex ) . PHP_EOL ; } if ( $ forceKill ) { posix_kill ( posix_getpid ( ) , 9 ) ; } }
Invoke default Shutdown Handler.

@param bool $forceKill
Invoke default Shutdown Handler .