Bug #15675 Updated: get_class() returns only lower chars
| From: | mfischer@php.net | Date: | Fri, 22 Feb 2002 13:33:21 +0000 |
| Subject: | Bug #15675 Updated: get_class() returns only lower chars | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-818@lists.php.net to get a copy of this message | ||
ID: 15675
Updated by: mfischer@php.net
Reported By: reinicke@sience.de
-Status: Open
+Status: Suspended
Bug Type: Class/Object related
Operating System: linux & w2000
PHP Version: 4.1.1
New Comment:
Classnames aren't case sensitive; if you write:
<?php
class getContentBlock {
}
$obj = new GeTcOnTeNtBlOcK();
$classname = get_class($obj);
echo "Class of Object: $classname !";
?>
It will work too.
That's because the internal class representation is insenstive (thus
stored only in lowercase).
This may be subject of change in ZE2, susupending this report.
Previous Comments:
------------------------------------------------------------------------
[2002-02-22 08:14:07] reinicke@sience.de
Hi,
i have some code like this:
<?php
class getContentBlock {
}
$obj = new getContentBlock();
$classname = get_class($obj);
echo "Class of Object: $classname !";
?>
=> Class of Object: getcontentblock !
The value of $classname should "getContentBlock",
but i get "getcontentblock" !
This is incorrect and causes errors, Classnames are
case sensitiv.
Why is the return value in lower case ?
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=15675&edit=1