Bug #47675

PSR-0 compatible classes using underscore cannot be loaded

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

Status:Resolved Start date:2013-04-28
Priority:Should have Due date:
Assigned To:Karsten Dambekalns % Done:

100%

Category:Core
Target version:TYPO3 Flow Base Distribution - 2.0
PHP Version: Complexity:
Has patch:No Affected Flow version:Flow 2.0.0 beta 2

Description

PSR-0 mandates that backslashes and underscores be translated to directory separators when loading classes. This is not done in our ClassLoader, thus packages that otherwise are compatible (composer / PSR-0) are not usable.

Associated revisions

Revision 24e15e46
Added by Karsten Dambekalns over 2 years ago

[BUGFIX] ClassLoader does not handle underscore correctly

For class names containing an underscore the ClassLoader now correctly
replaces that with a directory separator when loading classes.

This fixes compatibility with some PSR-0 compatible composer packages.

Change-Id: If94af25455c460b8eaebea4879738a69b461cbfb
Fixes: #47675
Releases: master, 2.0

Revision fd830e6a
Added by Karsten Dambekalns over 2 years ago

[BUGFIX] ClassLoader does not handle underscore correctly

For class names containing an underscore the ClassLoader now correctly
replaces that with a directory separator when loading classes.

This fixes compatibility with some PSR-0 compatible composer packages.

Change-Id: If94af25455c460b8eaebea4879738a69b461cbfb
Fixes: #47675
Releases: master, 2.0

History

#1 Updated by Gerrit Code Review over 2 years ago

  • Status changed from Accepted to Under Review

Patch set 1 for branch master has been pushed to the review server.
It is available at https://review.typo3.org/20274

#2 Updated by Gerrit Code Review over 2 years ago

Patch set 1 for branch 2.0 has been pushed to the review server.
It is available at https://review.typo3.org/20371

#3 Updated by Karsten Dambekalns over 2 years ago

  • Status changed from Under Review to Resolved
  • % Done changed from 0 to 100

Also available in: Atom PDF