#25205 [Opn->Bgs]: Class names case insensitiv

From: Date: Fri, 22 Aug 2003 08:35:32 +0000
Subject: #25205 [Opn->Bgs]: Class names case insensitiv
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-46475@lists.php.net to get a copy of this message
ID: 25205 Updated by: sniper@php.net Reported By: thomas dot hebinck at digionline dot de -Status: Open +Status: Bogus Bug Type: Zend Engine 2 problem Operating System: Linux Debian Woody PHP Version: 5CVS-2003-08-22 (dev) New Comment: Not bug. Previous Comments: ------------------------------------------------------------------------ [2003-08-22 03:23:37] thomas dot hebinck at digionline dot de Description: ------------ Class names are case insensitiv. __autoload always get lower-case class name. I think, this is not very important - but unusual ;-) Reproduce code: --------------- File 'case_insensitiv_class.php': <?php class CASE_insensitiv_CLASS { function __construct() { echo '__construct of ' . __CLASS__ . '<br>'; } } ?> File 'case_insensitiv_main.php': <?php function __autoload($className) { echo '__autoload of ' . $className . '<br>'; require_once $className . '.php'; } $test = new cAsE_InsEnsItIv_clAss; ?> Expected result: ---------------- __autoload of cAsE_InsEnsItIv_clAss and then some error ;-) Actual result: -------------- __autoload of case_insensitiv_class __construct of case_insensitiv_class ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=25205&edit=1

« previous php.bugs (#46475) next »