Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:53691 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 27724 invoked from network); 30 Jun 2011 01:13:29 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 30 Jun 2011 01:13:29 -0000 Authentication-Results: pb1.pair.com header.from=mjpelmear@gmail.com; sender-id=pass Authentication-Results: pb1.pair.com smtp.mail=mjpelmear@gmail.com; spf=pass; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 209.85.214.42 as permitted sender) X-PHP-List-Original-Sender: mjpelmear@gmail.com X-Host-Fingerprint: 209.85.214.42 mail-bw0-f42.google.com Received: from [209.85.214.42] ([209.85.214.42:33941] helo=mail-bw0-f42.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 31/38-10518-8BDCB0E4 for ; Wed, 29 Jun 2011 21:13:29 -0400 Received: by bwa19 with SMTP id 19so1651021bwa.29 for ; Wed, 29 Jun 2011 18:13:25 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:cc :content-type; bh=KBz7gLJJm+0pfYztYk+6JZIeh0JHQcsU0yYyLl3LHmw=; b=oVCd9XtrvHb9TTdEhsFKnOTVq45FhVeRb820zviasaSDyoUrWGqSZyWupU/Ti0/bgp +kL76Bp1GNNuVTt+cDaGJ8PNodNNsd5gGuIIXYRWFPUadMS42+PQTpbCV1HsbpRoggz+ BJ32mIpTXqMi4KtGImD8Z207n1iCqpjF8CUcg= MIME-Version: 1.0 Received: by 10.204.233.15 with SMTP id jw15mr1337813bkb.48.1309396405046; Wed, 29 Jun 2011 18:13:25 -0700 (PDT) Received: by 10.204.40.198 with HTTP; Wed, 29 Jun 2011 18:13:24 -0700 (PDT) Received: by 10.204.40.198 with HTTP; Wed, 29 Jun 2011 18:13:24 -0700 (PDT) In-Reply-To: References: <4E0B7F82.5080006@smashlabs.com> <2297BE5C-4B5F-4C16-9624-4137B63329FD@bitextender.com> <4E0B81D4.3080205@smashlabs.com> <4E0B9826.8050604@smashlabs.com> Date: Wed, 29 Jun 2011 21:13:24 -0400 Message-ID: Cc: internals@lists.php.net Content-Type: multipart/alternative; boundary=485b3979db4697ccff04a6e39bdd Subject: Re: [PHP-DEV] Fix for #53727 (is_subclass_of resolution with interfaces) From: mjpelmear@gmail.com (Matt Pelmear) --485b3979db4697ccff04a6e39bdd Content-Type: text/plain; charset=ISO-8859-1 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: --485b3979db4697ccff04a6e39bdd--