Edit report at http://bugs.php.net/bug.php?id=49852&edit=1
ID: 49852
Comment by: chris at cmbuckley dot co dot uk
Reported by: rahlentertainment at gmail dot com
Summary: Please Add an spl_autoload_case_sensitivity()
Function
Status: Open
Type: Feature/Change Request
Package: SPL related
Operating System: Ubuntu Server 8.10/9.04
PHP Version: 5.2.11
Block user comment: N
Private report: N
New Comment:
Backporting proposed patch by Marc Easen (Bug #53065) to PHP_5_2 branch
Previous Comments:
------------------------------------------------------------------------
[2009-10-12 23:11:04] rahlentertainment at gmail dot com
Description:
------------
Bug #48129, "spl_autoload and case sensitive" was marked as closed/won't
fix because changing the behaviour of spl_autoload would break backwards
compatibility.
As an alternative, to allow case sensitivity in the future, without
breaking existing code, why not add a an spl_autoload_case_sensitivity()
function?
The function could take a Boolean value, which enables/disables case
sensitivity for spl_autoload, with the default being disabled.
Developers who DO want case-sensitivity can simply call:
spl_autoload_case_sensitivity(true);
spl_autoload("MyClass");
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/bug.php?id=49852&edit=1