Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:17758 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 86597 invoked by uid 1010); 9 Aug 2005 23:03:07 -0000 Delivered-To: ezmlm-scan-internals@lists.php.net Delivered-To: ezmlm-internals@lists.php.net Received: (qmail 86569 invoked from network); 9 Aug 2005 23:03:06 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 9 Aug 2005 23:03:06 -0000 X-Host-Fingerprint: 81.169.182.136 ajaxatwork.net Linux 2.4/2.6 Received: from ([81.169.182.136:48035] helo=strato.aixcept.de) by pb1.pair.com (ecelerity 2.0 beta r(6323M)) with SMTP id EC/BF-04646-A2639F24 for ; Tue, 09 Aug 2005 19:03:06 -0400 Received: from [192.168.1.3] (dsl-082-083-244-228.arcor-ip.net [82.83.244.228]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (No client certificate requested) by strato.aixcept.de (Postfix) with ESMTP id 0814F35C37B; Wed, 10 Aug 2005 01:22:08 +0200 (CEST) Date: Wed, 10 Aug 2005 01:03:06 +0200 Reply-To: Marcus Boerger X-Priority: 3 (Normal) Message-ID: <688275775.20050810010306@marcus-boerger.de> To: Daniel Convissor Cc: PHP Internals List In-Reply-To: <20050809223849.GA24988@panix.com> References: <5.1.0.14.2.20050805135145.0366f820@localhost> <20050808093208.185bb60b.pierre@dotgeek.org> <86.75.04646.14887F24@pb1.pair.com> <5.1.0.14.2.20050808143433.031b9d00@localhost> <5.1.0.14.2.20050808230407.031dcdb0@localhost> <1123569068.6751.18.camel@localhost.localdomain> <20050809093056.4a70f068.pierre@dotgeek.org> <20050809115642.36a1cb5f.pierre@dotgeek.org> <6B737E1A-7DD2-45F5-8953-FF0C0AC07FBE@omniti.com> <20050809223849.GA24988@panix.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Subject: Re: [PHP-DEV] Re: RC1, instanceof? From: helly@php.net (Marcus Boerger) Hello Daniel, RTFM: try class_exists(..., false) marcus Wednesday, August 10, 2005, 12:38:49 AM, you wrote: > On Tue, Aug 09, 2005 at 02:07:27PM -0400, George Schlossnagle wrote: >> >> if(class_exists('MyFoo') && $obj instanceof MyFoo) { } > Unfortunately, class_exists() still calls __autoload(). Un-deprecating > is_a() seems to be an easy way to resolve this situation. > --Dan > -- > T H E A N A L Y S I S A N D S O L U T I O N S C O M P A N Y > data intensive web and database programming > http://www.AnalysisAndSolutions.com/ > 4015 7th Ave #4, Brooklyn NY 11232 v: 718-854-0335 f: 718-854-0409 Best regards, Marcus