[BUGFIX] CamelCased class names impossible with empty cache
authorChristian Kuhn <lolli@schwarzbu.ch>
Sat, 23 Jun 2012 18:20:07 +0000 (20:20 +0200)
committerChristian Kuhn <lolli@schwarzbu.ch>
Sun, 24 Jun 2012 14:13:02 +0000 (16:13 +0200)
commit304cdabeebb5679b2772bce530a5d4b1288408b2
tree8cae226d244b304faf02058981757f4b4ff721b4
parent57b516d39cc6107b11810fe4f2a7bcc0aded72ab
[BUGFIX] CamelCased class names impossible with empty cache

Issue #37110 that aimed to allow case sensitive class name in
ext_autoload files has a bug that any class registered with CamelCased
class name is only found if the autoload entries are read from cache.

The patch now creates a lower cased entry as soon as the core_autoload
and ext_autoload files are read. There is an additional test that fails
if the changes in the autoload class are not applied. The naming of the
existing camelCase test was adapted to show that it is handling the
answer of an successful cache fetch only.

Additionally the current strtolower is changed to t3lib_div::strtolower
to make the whole thing multibyte safe.

Change-Id: I94f7ca5b3e60234f08433c747c00639d8dd219cd
Fixes: #38331
Related: #37110
Releases: 6.0
Reviewed-on: http://review.typo3.org/12310
Reviewed-by: Steffen Ritter
Tested-by: Steffen Ritter
Reviewed-by: Wouter Wolters
Tested-by: Wouter Wolters
Reviewed-by: Christian Kuhn
Tested-by: Christian Kuhn
t3lib/class.t3lib_autoloader.php
tests/Unit/t3lib/class.t3lib_autoloaderTest.php