去掉不需要的常量

This commit is contained in:
thinkphp
2015-12-10 16:30:33 +08:00
parent 67c8bb5cde
commit 78a68f2d6c

View File

@@ -40,7 +40,6 @@ defined('SLOG_ON') or define('SLOG_ON', false); // 是否开启socketLog
defined('APP_MODE') or define('APP_MODE', function_exists('saeAutoLoader') ? 'sae' : 'common');
// 环境常量
define('MEMORY_LIMIT_ON', function_exists('memory_get_usage'));
define('IS_CGI', strpos(PHP_SAPI, 'cgi') === 0 ? 1 : 0);
define('IS_WIN', strstr(PHP_OS, 'WIN') ? 1 : 0);
define('IS_CLI', PHP_SAPI == 'cli' ? 1 : 0);