Bug #43541

Incomplete classes path detection for PSR-0

Added by Karsten Dambekalns over 8 years ago. Updated almost 8 years ago.

Status:
New
Priority:
Should have
Assignee:
-
Category:
Core
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

Related to TYPO3.Flow - Feature #42961: Support non PSR-0 packagesResolved2012-10-12

Actions
Related to TYPO3.Flow - Task #52280: Throw Exception if there is an array in PSR-0 autoloadUnder Review2013-09-26

Actions
#1

Updated by Karsten Dambekalns over 8 years ago

  • Target version set to 2.0
#2

Updated by Karsten Dambekalns over 8 years ago

See https://review.typo3.org/16681 for a change (slightly) related to this.

#4

Updated by Karsten Dambekalns almost 8 years ago

  • Target version changed from 2.0 to 2.0.1

Also available in: Atom PDF