Re: while we're at it (PHP-5.1 & instanceof)

From: Date: Thu, 16 Jun 2005 16:56:16 +0000
Subject: Re: while we're at it (PHP-5.1 & instanceof)
References: 1 2 3 4 5  Groups: php.internals php.internals 
Request: Send a blank email to internals+get-16744@lists.php.net to get a copy of this message
It seems a bit over-zealous to throw a fatal error when you're writing code to avoid a fatal error. If autoload fails, instanceof should simply return false. --Wez. On 6/16/05, Andi Gutmans <andi@zend.com> wrote: > Because it's a generic way of fetching classes and there's no reason to > change it. > If there's a real problem then email me. > > Andi > > At 04:55 PM 6/16/2005 +0200, Michael Wallner wrote: > >Hi Andi Gutmans, you wrote: > > > > > instanceof calls __autoload() > > > >Well, what for I wonder? > >If the class is not defined, no object can be an instance of it... > > > >Regards, > >-- > >Michael - < mike(@)php.net > > > -- > PHP Internals - PHP Runtime Development Mailing List > To unsubscribe, visit: http://www.php.net/unsub.php > >

« previous php.internals (#16744) next »