mirror of
https://gitee.com/fastadminnet/framework.git
synced 2026-07-01 12:42:48 +08:00
修正
This commit is contained in:
2
base.php
2
base.php
@@ -48,5 +48,7 @@ defined('CLASS_APPEND_SUFFIX') or define('CLASS_APPEND_SUFFIX', false); // 是
|
||||
defined('APP_MODE') or define('APP_MODE', function_exists('saeAutoLoader') ? 'sae' : 'common');
|
||||
|
||||
// 环境常量
|
||||
define('IS_CGI', strpos(PHP_SAPI, 'cgi') === 0 ? 1 : 0);
|
||||
define('IS_CLI', PHP_SAPI == 'cli' ? 1 : 0);
|
||||
define('IS_WIN', strstr(PHP_OS, 'WIN') ? 1 : 0);
|
||||
define('IS_MAC', strstr(PHP_OS, 'Darwin') ? 1 : 0);
|
||||
|
||||
Reference in New Issue
Block a user