Bug #43541

Incomplete classes path detection for PSR-0

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

Status:New Start date:2012-12-03
Priority:Should have Due date:
Assigned To:- % Done:

0%

Category:Core
Target version:TYPO3 Flow Base Distribution - 2.0.1
PHP Version: Complexity:
Has patch:No Affected Flow version:Git master

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 packages Resolved 2012-10-12
related to TYPO3.Flow - Task #52280: Throw Exception if there is an array in PSR-0 autoload Under Review 2013-09-26

History

#1 Updated by Karsten Dambekalns over 2 years ago

  • Target version set to 2.0

#2 Updated by Karsten Dambekalns over 2 years ago

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

#3 Updated by Karsten Dambekalns over 2 years ago

  • Affected Flow version changed from Git 1.2 (master) to Git master

#4 Updated by Karsten Dambekalns almost 2 years ago

  • Target version changed from 2.0 to 2.0.1

Also available in: Atom PDF