RE: [PHP-DEV] Re: RC1, instanceof?

From: Date: Mon, 08 Aug 2005 10:25:29 +0000
Subject: RE: [PHP-DEV] Re: RC1, instanceof?
References: 1  Groups: php.internals 
Request: Send a blank email to internals+get-17583@lists.php.net to get a copy of this message
+1 > -----Original Message----- > From: Pierre-Alain Joye [mailto:pierre@dotgeek.org] > Sent: Monday, August 08, 2005 9:32 AM > To: internals@lists.php.net > Subject: [PHP-DEV] Re: RC1, instanceof? > > On Fri, 05 Aug 2005 13:52:13 -0700 > andi@zend.com (Andi Gutmans) wrote: > > > Hi all, > > > > Another reminder, I'd like to roll RC1 on Monday. Everyone will > > be back from OSCON and we can start the Unicode merge right > > afterwards. > > One thing I would like to solve in 5.1 is instanceof (or the > deprecation of is_a). > > instanceof is useless much of the times as it raises a fatal error > as soon as the tested class does not exist. Since when tests raise > fatal error? > > Sample script: > class test{} > $a = new test; > if ($a instanceof Foo) { > echo "not foo"; > } > > result: > Fatal error: Class 'Foo' not found in /home/pierre/cvs/builds/ > php_head/instanceof.php on line 4 > > > I can write a patch to "fix" it if we agree that the current > behavior is not correct. > > Regards, > > --Pierre > > -- > PHP Internals - PHP Runtime Development Mailing List > To unsubscribe, visit: http://www.php.net/unsub.php >

« previous php.internals (#17583) next »