Req #49852 [Com]: Please Add an spl_autoload_case_sensitivity() Function

From: Date: Mon, 05 Sep 2011 01:16:54 +0000
Subject: Req #49852 [Com]: Please Add an spl_autoload_case_sensitivity() Function
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-163287@lists.php.net to get a copy of this message
Edit report at https://bugs.php.net/bug.php?id=49852&edit=1

 ID:                 49852
 Comment by:         blake dot soley at gmail dot com
 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:

This is still an issue with 5.3.8.  Please fix it, it is basic functionality.  Without it,
spl_autoload is broken by any definition.


Previous Comments:
------------------------------------------------------------------------
[2010-12-30 02:03:45] chris at cmbuckley dot co dot uk

Backporting proposed patch by Marc Easen (Bug #53065) to PHP_5_2 branch

------------------------------------------------------------------------
[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 https://bugs.php.net/bug.php?id=49852&edit=1


Thread (4 messages)

« previous php.bugs (#163287) next »