#15675 [Sus->WFx]: get_class() returns only lower chars

From: Date: Fri, 25 Apr 2003 16:56:04 +0000
Subject: #15675 [Sus->WFx]: get_class() returns only lower chars
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-38388@lists.php.net to get a copy of this message
ID: 15675 Updated by: sniper@php.net Reported By: reinicke at sience dot de -Status: Suspended +Status: Wont fix Bug Type: Class/Object related Operating System: linux & w2000 PHP Version: 4.1.1 New Comment: This won't change. Previous Comments: ------------------------------------------------------------------------ [2002-02-22 08:33:20] mfischer@php.net 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. ------------------------------------------------------------------------ [2002-02-22 08:14:07] reinicke at sience dot 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

« previous php.bugs (#38388) next »