Browse Source

PSR-4 ClassLoader: Bug fix: PEAR-like path needs ".php" appended.

Andreas Hennings 11 years ago
parent
commit
b08179e399
1 changed files with 1 additions and 1 deletions
  1. 1 1
      src/Composer/Autoload/ClassLoader.php

+ 1 - 1
src/Composer/Autoload/ClassLoader.php

@@ -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])) {