|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2003-08-22 03:35 UTC] sniper@php.net
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Sat Dec 13 02:00:01 2025 UTC |
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