Issue Feature Closed

#33869Autoloader does not find class file if correct case is used

Lucas Jenß 02/12/12, 18:21 updated 10/02/18, 12:40

Description

When adding a file to the autoloader, one has to write it all in lowercase, even if the class name itself is not, for the autoloader to find it, e.g.

class tx_foo_piSomeStuff {}

will not be found if the autoloader rule is set like this:

array(‘tx_foo_piSomeStuff’ => $path);

but it will be found like this:

array(‘tx_foo_pisomestuff’ => $path);

This behavior doesn’t seem right, given that PHP’s class naming system is case insensitive, the autoloader should imo just apply a strtolower() to the array key.

Reviews 0

No change resolves or names this issue in its commit message, and no comment links one.