Re: Re: RC1, instanceof?
| From: | Marcus Boerger | Date: | Tue, 09 Aug 2005 23:03:06 +0000 |
| Subject: | Re: Re: RC1, instanceof? | ||
| References: | 1 2 3 4 5 6 7 8 9 10 11 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-17758@lists.php.net to get a copy of this message | ||
Hello Daniel,
RTFM: try class_exists(..., false)
marcus
Wednesday, August 10, 2005, 12:38:49 AM, you wrote:
> On Tue, Aug 09, 2005 at 02:07:27PM -0400, George Schlossnagle wrote:
>>
>> if(class_exists('MyFoo') && $obj instanceof MyFoo) { }
> Unfortunately, class_exists() still calls __autoload(). Un-deprecating
> is_a() seems to be an easy way to resolve this situation.
> --Dan
> --
> T H E A N A L Y S I S A N D S O L U T I O N S C O M P A N Y
> data intensive web and database programming
> http://www.AnalysisAndSolutions.com/
> 4015 7th Ave #4, Brooklyn NY 11232 v: 718-854-0335 f: 718-854-0409
Best regards,
Marcus