Skip to content

Commit e90aed2

Browse files
committed
移动RUNTIME_PATH常量定义为在,兼容cluster引擎在BAE上使用
1 parent 1b60e1c commit e90aed2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ThinkPHP/ThinkPHP.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,12 +18,12 @@
1818
// 系统目录定义
1919
defined('THINK_PATH') or define('THINK_PATH', dirname(__FILE__).'/');
2020
defined('APP_PATH') or define('APP_PATH', dirname($_SERVER['SCRIPT_FILENAME']).'/');
21-
defined('RUNTIME_PATH') or define('RUNTIME_PATH',realpath(APP_PATH).'/Runtime/');
2221
defined('APP_DEBUG') or define('APP_DEBUG',false); // 是否调试模式
2322
if(defined('ENGINE_NAME')) {
2423
defined('ENGINE_PATH') or define('ENGINE_PATH',THINK_PATH.'Extend/Engine/');
2524
require ENGINE_PATH.strtolower(ENGINE_NAME).'.php';
2625
}else{
26+
defined('RUNTIME_PATH') or define('RUNTIME_PATH',realpath(APP_PATH).'/Runtime/');
2727
$runtime = defined('MODE_NAME')?'~'.strtolower(MODE_NAME).'_runtime.php':'~runtime.php';
2828
defined('RUNTIME_FILE') or define('RUNTIME_FILE',RUNTIME_PATH.$runtime);
2929
if(!APP_DEBUG && is_file(RUNTIME_FILE)) {

0 commit comments

Comments
 (0)