The ChangeLog for CI v1.5.1 (actually listed as v1.5.0.2 in the log) states that the case of a loaded class is now respected:
Added support for naming custom library files in lower or uppercase.
However, line 766 of Loader.php is still forcing to lowercase:
$class = strtolower($class);
Removing that line breaks CI due to case-swapping during the loading of the library.
I really want the case to be respected, so when I do this:
$this->load->library('My_Favorite_Library');
this gets assigned:
$this->My_Favorite_Library
rather than this:
$this->my_favorite_library
This is an issue because of PHP’s inconsistent case sensitivity between variables and function/class names. I guess Code Igniter was attempting to address this issue by defining a certain convention for loading libraries.
This changelog entry either needs to be removed or the issue addressed to avoid confusing newcomers to the framework.
