mirror of
https://gitee.com/fastadminnet/framework.git
synced 2026-07-02 21:52:34 +08:00
WIN环境下文件名大小写严格检测使用效率更高的PHP函数
This commit is contained in:
@@ -33,7 +33,7 @@ class Loader {
|
||||
$filename = $path . str_replace('\\', '/', $class) . EXT;
|
||||
if(is_file($filename)) {
|
||||
// Win环境下面严格区分大小写
|
||||
if (IS_WIN && !strstr(str_replace('/', '\\', realpath($filename)), $class . EXT, true)){
|
||||
if (IS_WIN && false === strpos(str_replace('/', '\\', realpath($filename)), $class . EXT)){
|
||||
return ;
|
||||
}
|
||||
include $filename;
|
||||
|
||||
Reference in New Issue
Block a user