Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:17826 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 59812 invoked by uid 1010); 11 Aug 2005 08:51:41 -0000 Delivered-To: ezmlm-scan-internals@lists.php.net Delivered-To: ezmlm-internals@lists.php.net Received: (qmail 59797 invoked from network); 11 Aug 2005 08:51:41 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 11 Aug 2005 08:51:41 -0000 X-Host-Fingerprint: 212.183.43.231 M2496P007.adsl.highway.telekom.at Received: from ([212.183.43.231:22076] helo=localhost.localdomain) by pb1.pair.com (ecelerity 2.0 beta r(6323M)) with SMTP id EE/D1-24081-D911BF24 for ; Thu, 11 Aug 2005 04:51:41 -0400 Message-ID: To: internals@lists.php.net Date: Thu, 11 Aug 2005 10:49:22 +0200 Organization: IWORKS User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.7.2) Gecko/20040803 [ http://iworks.at ] X-Accept-Language: de-AT, de-DE, de, en, en-GB, en-US MIME-Version: 1.0 References: <20050810094649.69a9e235.pierre@dotgeek.org> <5.1.0.14.2.20050810080050.04997ea0@localhost> In-Reply-To: <5.1.0.14.2.20050810080050.04997ea0@localhost> X-Enigmail-Version: 0.90.0.0 X-Enigmail-Supports: pgp-inline, pgp-mime Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="------------enigEDDEF26F7BBFE7059FE215F7" X-Posted-By: 212.183.43.231 Subject: Re: [PHP-DEV] is_a, instanceof, conclusion From: mike@php.net (Michael Wallner) --------------enigEDDEF26F7BBFE7059FE215F7 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Hi Andi Gutmans, you wrote: > I don't mind undeprecating it while I continue to digest the whole > instanceof thread and look at real-world examples... After all I think there's more hidden behind than just your argument about the generic way...? Why are you defending this broken bridge that hard? You're saying that PHP shouldn't be that dynamic regarding this issue, so why does it try do dynamically load a class within instanceof (which is needless *in every case* anyway)? I think PEAR qualifies as a "real-world" example and there is_a() is used about 680 times, now if that would be instanceof and we assume 10% to check for a non-existing class, it'd bail out at about 70 instances. Regards, -- Michael - < mike(@)php.net > --------------enigEDDEF26F7BBFE7059FE215F7 Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.0 (Cygwin) iD8DBQFC+xEV2pTtEijQyW0RAo7lAKCI5H1DgFSm3uZ/P1wQAY2soIC0MQCfSqui 6PdGEJuGWWkS9aZ2F0szjUo= =0TjE -----END PGP SIGNATURE----- --------------enigEDDEF26F7BBFE7059FE215F7--