+1 > -----Original Message----- > From: Pierre-Alain Joye [mailto:[EMAIL PROTECTED] > 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 > [EMAIL PROTECTED] (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 >
-- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: http://www.php.net/unsub.php