Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:53695 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 54215 invoked from network); 30 Jun 2011 05:11:26 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 30 Jun 2011 05:11:26 -0000 Authentication-Results: pb1.pair.com smtp.mail=davidkmuir@gmail.com; spf=unknown; sender-id=unknown Authentication-Results: pb1.pair.com header.from=davidkmuir@gmail.com; sender-id=unknown Received-SPF: unknown (pb1.pair.com: domain gmail.com does not designate 208.113.200.5 as permitted sender) X-PHP-List-Original-Sender: davidkmuir@gmail.com X-Host-Fingerprint: 208.113.200.5 caibbdcaaaaf.dreamhost.com Windows 98 (1) Received: from [208.113.200.5] ([208.113.200.5:45488] helo=homiemail-a79.g.dreamhost.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id A6/2B-10518-D750C0E4 for ; Thu, 30 Jun 2011 01:11:25 -0400 Received: from homiemail-a79.g.dreamhost.com (localhost [127.0.0.1]) by homiemail-a79.g.dreamhost.com (Postfix) with ESMTP id DA95A7D4061 for ; Wed, 29 Jun 2011 22:11:22 -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-a79.g.dreamhost.com (Postfix) with ESMTPSA id 581F47D4059 for ; Wed, 29 Jun 2011 22:11:22 -0700 (PDT) Message-ID: <4E0C0574.10901@gmail.com> Date: Thu, 30 Jun 2011 15:11:16 +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> <4E0BFF40.4060101@gmail.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 15:01, Matt Pelmear wrote: > Not like class_implements(), since that requires processing the returned > array... Rather something that would function similarly to is_subclass_of() > (in that it returns a bool, not an array), but for interfaces. > I seem to run into a need for that on a fairly regular basis. (when I first > found class_implements() this is what I thought it did before reading the > docs) > > -matt Oops. My bad. Missed the array_key_exists() part in the example. David