public static function end($msg = '') { if (PHP_SAPI != 'cli') { exit($msg); } if ($msg) { echo $msg; } throw new \Exception('jump_exit'); }
/** * 退出 * @param string $str */ function _exit($str = '') { if (defined('WORKERMAN_ROOT_DIR')) { return Http::end($str); } return exit($str); }