mirror of
https://gitee.com/fastadminnet/framework.git
synced 2026-07-01 20:52:48 +08:00
调试模式 window下面自动加载严格检测大小写
This commit is contained in:
@@ -54,8 +54,12 @@ class Loader
|
||||
}
|
||||
$filename = $path . str_replace('\\', DS, $class) . EXT;
|
||||
if (is_file($filename)) {
|
||||
// 开启调试模式Win环境严格区分大小写
|
||||
if (APP_DEBUG && IS_WIN && false === strpos(str_replace('/', '\\', realpath($filename)), $class . EXT)) {
|
||||
return;
|
||||
}
|
||||
include $filename;
|
||||
} elseif (APP_DEBUG) {
|
||||
} else {
|
||||
Log::record(' autoloader error : ' . $filename, 'notic');
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user