From:             thomas dot hebinck at digionline dot de
Operating system: Linux Debian Woody
PHP version:      5CVS-2003-08-22 (dev)
PHP Bug Type:     Zend Engine 2 problem
Bug description:  Class names case insensitiv

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 bug report at http://bugs.php.net/?id=25205&edit=1
-- 
Try a CVS snapshot (php4):  http://bugs.php.net/fix.php?id=25205&r=trysnapshot4
Try a CVS snapshot (php5):  http://bugs.php.net/fix.php?id=25205&r=trysnapshot5
Fixed in CVS:               http://bugs.php.net/fix.php?id=25205&r=fixedcvs
Fixed in release:           http://bugs.php.net/fix.php?id=25205&r=alreadyfixed
Need backtrace:             http://bugs.php.net/fix.php?id=25205&r=needtrace
Try newer version:          http://bugs.php.net/fix.php?id=25205&r=oldversion
Not developer issue:        http://bugs.php.net/fix.php?id=25205&r=support
Expected behavior:          http://bugs.php.net/fix.php?id=25205&r=notwrong
Not enough info:            http://bugs.php.net/fix.php?id=25205&r=notenoughinfo
Submitted twice:            http://bugs.php.net/fix.php?id=25205&r=submittedtwice
register_globals:           http://bugs.php.net/fix.php?id=25205&r=globals
PHP 3 support discontinued: http://bugs.php.net/fix.php?id=25205&r=php3
Daylight Savings:           http://bugs.php.net/fix.php?id=25205&r=dst
IIS Stability:              http://bugs.php.net/fix.php?id=25205&r=isapi
Install GNU Sed:            http://bugs.php.net/fix.php?id=25205&r=gnused

Reply via email to