Re: Re: RC1, instanceof?

From: Date: Tue, 09 Aug 2005 10:24:56 +0000
Subject: Re: Re: RC1, instanceof?
References: 1 2 3 4 5 6 7  Groups: php.internals 
Request: Send a blank email to internals+get-17681@lists.php.net to get a copy of this message
Alan Knowles wrote: > The basic point is that is_a() provided negative testing of non-existant > classes > if (!is_a($obj, "SomeRarelyUsedClass")) { .... > > instance_of does not, and can not, at present. You can use if (!($obj instanceof SomeRarelyUsedClass)) ;) Why statement $obj instanceof NotLoadedClass can't evaluate as FALSE if class not loaded (what with serialized objects?) because if class not loaded, than object can't be instanceof this class, right?

« previous php.internals (#17681) next »