62 $lowerClass = strtolower( $className );
64 if ( self::$autoloadLocalClassesLower ===
null ) {
68 if ( isset( self::$autoloadLocalClassesLower[$lowerClass] ) ) {
69 if ( function_exists(
'wfDebugLog' ) ) {
70 wfDebugLog(
'autoloader',
"Class {$className} was loaded using incorrect case" );
72 $filename = self::$autoloadLocalClassesLower[$lowerClass];
76 if ( !$filename && strpos( $className,
'\\' ) !==
false ) {
79 while (
false !== $pos = strrpos( $prefix,
'\\' ) ) {
81 $prefix = substr( $className, 0, $pos + 1 );
82 if ( isset( self::$psr4Namespaces[$prefix] ) ) {
83 $relativeClass = substr( $className, $pos + 1 );
85 $file = self::$psr4Namespaces[$prefix] .
'/' .
86 str_replace(
'\\',
'/', $relativeClass ) .
'.php';
87 if ( file_exists( $file ) ) {
94 $prefix = rtrim( $prefix,
'\\' );
104 if ( substr( $filename, 0, 1 ) !=
'/' && substr( $filename, 1, 1 ) !=
':' ) {
106 $filename =
"$IP/$filename";