PSR-4 ClassLoader: Bug fix: PEAR-like path needs ".php" appended.
parent
5dd3c12d3d
commit
b08179e399
|
@ -323,7 +323,7 @@ class ClassLoader
|
|||
;
|
||||
} else {
|
||||
// PEAR-like class name
|
||||
$logicalPathPsr0 = strtr($class, '_', DIRECTORY_SEPARATOR);
|
||||
$logicalPathPsr0 = strtr($class, '_', DIRECTORY_SEPARATOR) . '.php';
|
||||
}
|
||||
|
||||
if (isset($this->prefixesPsr0[$first])) {
|
||||
|
|
Loading…
Reference in New Issue