Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:17579 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 16398 invoked by uid 1010); 8 Aug 2005 07:32:12 -0000 Delivered-To: ezmlm-scan-internals@lists.php.net Delivered-To: ezmlm-internals@lists.php.net Received: (qmail 16383 invoked from network); 8 Aug 2005 07:32:12 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 8 Aug 2005 07:32:12 -0000 X-Host-Fingerprint: 212.18.24.66 host-212-18-24-66.customer.m-online.net Received: from ([212.18.24.66:27705] helo=localhost.localdomain) by pb1.pair.com (ecelerity 2.0 beta r(6323M)) with SMTP id 62/73-04646-C7A07F24 for ; Mon, 08 Aug 2005 03:32:12 -0400 To: internals@lists.php.net Date: Mon, 8 Aug 2005 09:32:08 +0200 Message-ID: <20050808093208.185bb60b.pierre@dotgeek.org> References: <5.1.0.14.2.20050805135145.0366f820@localhost> X-Newsreader: Sylpheed version 2.0.0beta6 (GTK+ 2.6.7; i686-pc-linux-gnu) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-Posted-By: 212.18.24.66 Subject: Re: RC1, instanceof? From: pierre@dotgeek.org (Pierre-Alain Joye) 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