note 42214 added to migration5.incompatible
| From: | dave at corecomm dot us | Date: | Sat, 08 May 2004 03:43:34 +0000 |
| Subject: | note 42214 added to migration5.incompatible | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-69334@lists.php.net to get a copy of this message | ||
I think the newly case-preserving (fixed for user-defined classes) behavior of get_class() should be
added to the list of backward-incompatible changes.
I know that, unfortunately, I've written many applications that test get_class() against a
literal (lowercase) string. I will have to rewrite these -- perhaps testing against
strtolower(get_class($foo)) -- for the application to behave correctly with both PHP4 and PHP5.
It's likely that this concern extends to many of the other Classes/Objects functions that take
or a string classname value as well.
----
Manual Page -- http://www.php.net/manual/en/migration5.incompatible.php
Edit -- http://master.php.net/manage/user-notes.php?action=edit+42214
Delete -- http://master.php.net/manage/user-notes.php?action=delete+42214&report=yes
Reject -- http://master.php.net/manage/user-notes.php?action=reject+42214&report=yes
Search -- http://master.php.net/manage/user-notes.php