Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:53677 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 76557 invoked from network); 29 Jun 2011 20:20:22 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 29 Jun 2011 20:20:22 -0000 Authentication-Results: pb1.pair.com smtp.mail=dragoonis@gmail.com; spf=pass; sender-id=pass Authentication-Results: pb1.pair.com header.from=dragoonis@gmail.com; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 209.85.210.170 as permitted sender) X-PHP-List-Original-Sender: dragoonis@gmail.com X-Host-Fingerprint: 209.85.210.170 mail-iy0-f170.google.com Received: from [209.85.210.170] ([209.85.210.170:41563] helo=mail-iy0-f170.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id DD/00-10518-5098B0E4 for ; Wed, 29 Jun 2011 16:20:22 -0400 Received: by iym1 with SMTP id 1so1588189iym.29 for ; Wed, 29 Jun 2011 13:20:19 -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:to :cc:content-type:content-transfer-encoding; bh=wE9nIMdGHPfYWlJeA4Ej/pYUnPEDLshzFrg13pd9EK8=; b=H03vxCYKMbkpOe/37RMXkQp/JWKbll/WxqOLfkOzXX251TD5kvQaFvR4UbyQjtMSjD yHZYMgLPUFyw7c4R/v9CoTspAVVNNnpWnNC63J+4Tib6bwnik+qhZUy/2UYFFAh28qVt XAa4hjThl/DC/SRo1SFwwFv+TH5JXXWrxGgR8= MIME-Version: 1.0 Received: by 10.42.96.133 with SMTP id j5mr1084026icn.477.1309378818974; Wed, 29 Jun 2011 13:20:18 -0700 (PDT) Received: by 10.42.108.70 with HTTP; Wed, 29 Jun 2011 13:20:18 -0700 (PDT) In-Reply-To: <4E0B81D4.3080205@smashlabs.com> References: <4E0B7F82.5080006@smashlabs.com> <2297BE5C-4B5F-4C16-9624-4137B63329FD@bitextender.com> <4E0B81D4.3080205@smashlabs.com> Date: Wed, 29 Jun 2011 21:20:18 +0100 Message-ID: To: Ralph Schindler Cc: =?ISO-8859-1?Q?David_Z=FClke?= , internals , Dmitry Stogov Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Subject: Re: [PHP-DEV] Fix for #53727 (is_subclass_of resolution with interfaces) From: dragoonis@gmail.com (Paul Dragoonis) On Wed, Jun 29, 2011 at 8:49 PM, Ralph Schindler wrot= e: > Correct. > > I was hasty in that example, the first was copied & tested (and is reflec= ted > in the test, as is that variation of what I wrote up.) > > Either way, test and patch work in 5_3. Doesn't this functionality confuse matters? If this patch is added, is there now no difference between instanceof and is_subclass_of(). If this is the case my question is then why do we have two methods to do the same thing? I thought instanceof was for parent classes + interfaces.. and is_subclass_of() was just for parent classes. Regards, Paul Dragoonis. > > Thanks, > -ralph > > On 6/29/11 2:42 PM, David Z=FClke wrote: >> >> On 29.06.2011, at 21:39, Ralph Schindler wrote: >> >>> =A0interface A {} >>> =A0class B implements A {} >>> =A0class C extends B {} >>> =A0var_dump(is_subclass_of('B', 'A')); // true >> >> Typo there; that should be 'C', not 'B'. >> >> David >> >> > > > -- > PHP Internals - PHP Runtime Development Mailing List > To unsubscribe, visit: http://www.php.net/unsub.php > >