Edit report at https://bugs.php.net/bug.php?id=48129&edit=1

 ID:                 48129
 Comment by:         bram048 at gmail dot com
 Reported by:        ti dot webdev at gmail dot com
 Summary:            spl_autoload and case sensitive
 Status:             Wont fix
 Type:               Bug
 Package:            SPL related
 Operating System:   *
 PHP Version:        5.2.9
 Block user comment: N
 Private report:     N

 New Comment:

I would kindly ask the PHP developer team to reconsider this bug. There are 
enough 
alternatives to fix this behaviour without breaking BC; see bug report #48129.


Previous Comments:
------------------------------------------------------------------------
[2009-05-02 18:34:13] j...@php.net

Breaking BC is not an option. 

------------------------------------------------------------------------
[2009-05-02 16:15:43] col...@php.net

spl_autoload first strtolowers the class name before the lookup, so basically 
if you use spl_autoload("MyClass") it will look for myclass.php.

I'm not sure "fixing it" right now is a good idea since it would break BC.

------------------------------------------------------------------------
[2009-05-02 06:02:07] ti dot webdev at gmail dot com

Description:
------------
spl_autoload function load strtolower($className.$ext) files only


Reproduce code:
---------------
<?
spl_autoload('mylowercaseclass');
spl_autoload('MyClass');

Expected result:
----------------
Loaded mylowercaseclass.php file
Loaded MyClass.php file

Actual result:
--------------
Loaded mylowercaseclass.php file
LogicException: Class MyClass could not be loaded


------------------------------------------------------------------------



-- 
Edit this bug report at https://bugs.php.net/bug.php?id=48129&edit=1

Reply via email to