php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #25205 Class names case insensitiv
Submitted: 2003-08-22 03:23 UTC Modified: 2003-08-22 03:35 UTC
From: thomas dot hebinck at digionline dot de Assigned:
Status: Not a bug Package: Scripting Engine problem
PHP Version: 5CVS-2003-08-22 (dev) OS: Linux Debian Woody
Private report: No CVE-ID: None
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: thomas dot hebinck at digionline dot de
New email:
PHP Version: OS:

 

 [2003-08-22 03:23 UTC] 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

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2003-08-22 03:35 UTC] sniper@php.net
Not bug.

 
PHP Copyright © 2001-2025 The PHP Group
All rights reserved.
Last updated: Mon Dec 15 06:00:01 2025 UTC