Re: RC1, instanceof?

From: Date: Mon, 08 Aug 2005 07:32:08 +0000
Subject: Re: RC1, instanceof?
References: 1  Groups: php.internals 
Request: Send a blank email to internals+get-17579@lists.php.net to get a copy of this message
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

« previous php.internals (#17579) next »