去掉 include_path中的 VENDOR_PATH 设置,如果遇到不规范的第三方类库,可以由用户自行设置

This commit is contained in:
麦当苗儿
2013-04-17 10:27:52 +08:00
parent d144aaa6a7
commit e4c175527f

View File

@@ -28,9 +28,6 @@ defined('VENDOR_PATH') or define('VENDOR_PATH', THINK_PATH.'Vendor/');
defined('EXT') or define('EXT', '.php');
defined('APP_DEBUG') or define('APP_DEBUG', false); // 是否调试模式
// 为了方便导入第三方类库 设置Vendor目录到include_path
set_include_path(get_include_path() . PATH_SEPARATOR . VENDOR_PATH);
// 环境常量
define('MEMORY_LIMIT_ON', function_exists('memory_get_usage'));
define('IS_CGI', strpos(PHP_SAPI, 'cgi') === 0 ? 1 : 0);