Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:53692 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 48384 invoked from network); 30 Jun 2011 04:45:03 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 30 Jun 2011 04:45:03 -0000 Authentication-Results: pb1.pair.com header.from=davidkmuir@gmail.com; sender-id=unknown Authentication-Results: pb1.pair.com smtp.mail=davidkmuir@gmail.com; spf=unknown; sender-id=unknown Received-SPF: unknown (pb1.pair.com: domain gmail.com does not designate 66.33.216.122 as permitted sender) X-PHP-List-Original-Sender: davidkmuir@gmail.com X-Host-Fingerprint: 66.33.216.122 hapkido.dreamhost.com Linux 2.4/2.6 Received: from [66.33.216.122] ([66.33.216.122:38741] helo=hapkido.dreamhost.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 82/1A-10518-E4FFB0E4 for ; Thu, 30 Jun 2011 00:45:03 -0400 Received: from homiemail-a55.g.dreamhost.com (caibbdcaaaaf.dreamhost.com [208.113.200.5]) by hapkido.dreamhost.com (Postfix) with ESMTP id 9BABE179B42 for ; Wed, 29 Jun 2011 21:44:58 -0700 (PDT) Received: from homiemail-a55.g.dreamhost.com (localhost [127.0.0.1]) by homiemail-a55.g.dreamhost.com (Postfix) with ESMTP id 7C3EE12C059 for ; Wed, 29 Jun 2011 21:44:55 -0700 (PDT) Received: from [192.168.1.104] (dsl-202-173-152-56.vic.westnet.com.au [202.173.152.56]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) (Authenticated sender: david@thefourstooges.com) by homiemail-a55.g.dreamhost.com (Postfix) with ESMTPSA id EA94612C04E for ; Wed, 29 Jun 2011 21:44:54 -0700 (PDT) Message-ID: <4E0BFF40.4060101@gmail.com> Date: Thu, 30 Jun 2011 14:44:48 +1000 User-Agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.2.17) Gecko/20110424 Lightning/1.0b2 Thunderbird/3.1.10 MIME-Version: 1.0 To: internals@lists.php.net References: <4E0B7F82.5080006@smashlabs.com> <2297BE5C-4B5F-4C16-9624-4137B63329FD@bitextender.com> <4E0B81D4.3080205@smashlabs.com> <4E0B9826.8050604@smashlabs.com> In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Subject: Re: [PHP-DEV] Fix for #53727 (is_subclass_of resolution with interfaces) From: davidkmuir@gmail.com (David Muir) On 30/06/11 11:13, Matt Pelmear wrote: > Seems odd to me that is_subclass_of returns true for interfaces... I never > realized that before. > > Personally I would prefer a separate method to check for interfaces, since > they aren't really classes (at least in my head), but I suppose that would > break BC. (I've always wanted a method for checking if a class implements an > interface.) > So, maybe this patch makes sense to me, and some additional method for > checking only interfaces would be nice? (I can't think of a good name for > such a method.) Thoughts? > > -Matt > On Jun 29, 2011 5:26 PM, "Ralph Schindler" wrote: > As in class_implements() (shown in Ralph's example)? David