Re: Re: RC1, instanceof?

From: Date: Tue, 09 Aug 2005 23:44:31 +0000
Subject: Re: Re: RC1, instanceof?
References: 1 2 3 4 5 6 7 8 9 10  Groups: php.internals 
Request: Send a blank email to internals+get-17759@lists.php.net to get a copy of this message
On Wed, Aug 10, 2005 at 01:03:06AM +0200, Marcus Boerger wrote: > 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. > > RTFM: try class_exists(..., false) Good point. Forgot about that. Similarly, George's example forgot about that parameter also. Thanks, --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

« previous php.internals (#17759) next »