Project

General

Profile

Actions

Feature #33869

closed

Autoloader does not find class file if correct case is used

Added by Lucas Jenß about 12 years ago. Updated over 5 years ago.

Status:
Closed
Priority:
Could have
Assignee:
-
Category:
-
Target version:
-
Start date:
2012-02-12
Due date:
% Done:

100%

Estimated time:
PHP Version:
Tags:
Complexity:
Sprint Focus:

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.

Actions

Also available in: Atom PDF