diff --git a/library/think/Loader.php b/library/think/Loader.php index 3059f178..38c69358 100644 --- a/library/think/Loader.php +++ b/library/think/Loader.php @@ -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'); } }