Re: is get_class() case-sensitive now?
| From: | Adam Maccabee Trachtenberg | Date: | Wed, 14 Jan 2004 21:49:43 +0000 |
| Subject: | Re: is get_class() case-sensitive now? | ||
| References: | 1 2 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-7117@lists.php.net to get a copy of this message | ||
On Wed, 14 Jan 2004, Marcus Boerger wrote:
> > This is such a huge BC break with php 4.x, I would have to fork the
> > package just because of the numerous get_class() statements.
You could always strtolower() them.
> > Is case-sensitive get_class() here to stay?
>
> Yes. We now report classes, methods and functions with their real name.
> Otherwise studlyCaps and such would have no sense at all.
However, you still can't have class foo and class FOO, so
strtolower(get_class()) still uniquely identifies a class.
-adam
--
adam@trachtenberg.com
author of o'reilly's php cookbook
avoid the holiday rush, buy your copy today!