mirror of
https://gitee.com/fastadminnet/framework.git
synced 2026-07-01 12:42:48 +08:00
自动加载严格区分大小写 即使是非调试模式
This commit is contained in:
@@ -79,7 +79,7 @@ class Loader
|
||||
$filename = $path . str_replace('\\', DS, $class) . EXT;
|
||||
if (is_file($filename)) {
|
||||
// 开启调试模式Win环境严格区分大小写
|
||||
if (App::$debug && IS_WIN && false === strpos(realpath($filename), $class . EXT)) {
|
||||
if (IS_WIN && false === strpos(realpath($filename), $class . EXT)) {
|
||||
return false;
|
||||
}
|
||||
include $filename;
|
||||
@@ -254,7 +254,7 @@ class Loader
|
||||
$filename = $baseUrl . $class . $ext;
|
||||
if (is_file($filename)) {
|
||||
// 开启调试模式Win环境严格区分大小写
|
||||
if (App::$debug && IS_WIN && false === strpos(realpath($filename), $class . $ext)) {
|
||||
if (IS_WIN && false === strpos(realpath($filename), $class . $ext)) {
|
||||
return false;
|
||||
}
|
||||
include $filename;
|
||||
|
||||
Reference in New Issue
Block a user