Re: is get_class() case-sensitive now?
| From: | Chuck Hagenbuch | Date: | Wed, 14 Jan 2004 21:46:51 +0000 |
| Subject: | Re: is get_class() case-sensitive now? | ||
| References: | 1 2 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-7116@lists.php.net to get a copy of this message | ||
> > I just tried a test parse of phpDocumentor CVS using a fresh compile of
> > HEAD on windows xp. It went bananas with warnings and a fatal error.
> > Tracking down the error turned up get_class() returning "parserDesc"
> > instead of "parserdesc", which ruins every time I test whether
> > get_class($a) == 'parserdesc', for example.
is_a($a, 'parserDesc') would work for you in both 4 and 5 (well, I assume in 5).
-chuck
--
Charles Hagenbuch, <chuck@horde.org>
"Here, I brought some cole slaw. It's made from peeeooople! Just kidding."