Bug #43541
Incomplete classes path detection for PSR-0
Status:
New
Priority:
Should have
Assignee:
-
Category:
Core
Target version:
Start date:
2012-12-03
Due date:
% Done:
0%
Estimated time:
PHP Version:
Has patch:
No
Complexity:
Description
For the guzzle/guzzle package (as an example that uncovered this), our autoloading fails.
First symptom is the error Cannot redeclare class Zend_Log in …/Libraries/guzzle/guzzle/tests/Guzzle/Tests/Log/Zend_Log.php on line 30
which cannot be resolved using object.excludeClasses
configuration. Indeed the PackageStates.php
contains:
'guzzle.guzzle' => array ( 'manifestPath' => '', 'state' => 'active', 'packagePath' => 'Libraries/guzzle/guzzle/', 'classesPath' => 'tests/', ),
Note the classesPath
entry… this is probably caused by this part of Guzzle's composer manifest:
"autoload": { "psr-0": { "Guzzle\\Tests": "tests/", "Guzzle": "src/" } },
Related issues