Issue Bug Closed

#20992TYPO3 autoloader is case-sensitive while PHP's is not

Francois Suter 09/04/09, 09:32 updated 10/10/09, 15:09

Description

From a couple of tests I made, I noted that TYPO3’s autoloading mechanism is case-sensitive, where PHP is not. This creates confusion when creating an ext_autoload.php file.

Example taken from the Scheduler:

‘tx_scheduler_task’ => t3lib_extMgm::extPath(‘scheduler’, ‘class.tx_scheduler_task.php’),

In fact, the class’ name is “tx_schedular_Task” (note the capital “T”). But if the line is changed in the ext_autoload.php file to:

‘tx_scheduler_Task’ => t3lib_extMgm::extPath(‘scheduler’, ‘class.tx_scheduler_task.php’),

then the class is not found by t3lib_div::callUserFunction().
(issue imported from #M11871)

Reviews 0

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