Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:33445 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 12839 invoked by uid 1010); 26 Nov 2007 18:58:03 -0000 Delivered-To: ezmlm-scan-internals@lists.php.net Delivered-To: ezmlm-internals@lists.php.net Received: (qmail 12806 invoked from network); 26 Nov 2007 18:58:03 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 26 Nov 2007 18:58:03 -0000 Authentication-Results: pb1.pair.com header.from=felho@avalon.aut.bme.hu; sender-id=unknown Authentication-Results: pb1.pair.com smtp.mail=felho@avalon.aut.bme.hu; spf=permerror; sender-id=unknown Received-SPF: error (pb1.pair.com: domain avalon.aut.bme.hu from 84.2.40.7 cause and error) X-PHP-List-Original-Sender: felho@avalon.aut.bme.hu X-Host-Fingerprint: 84.2.40.7 mail02a.mail.t-online.hu Received: from [84.2.40.7] ([84.2.40.7:58956] helo=mail02a.mail.t-online.hu) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 31/E6-55421-C111B474 for ; Mon, 26 Nov 2007 13:31:57 -0500 Received: from gergely-hodicskas-computer.local (dsl51B68ED0.pool.t-online.hu [81.182.142.208]) by mail02a.mail.t-online.hu (Postfix) with ESMTP id CD35EEC4D7 for ; Mon, 26 Nov 2007 19:31:53 +0100 (CET) Message-ID: <474B1119.5040900@avalon.aut.bme.hu> Date: Mon, 26 Nov 2007 19:31:53 +0100 User-Agent: Thunderbird 2.0.0.9 (Macintosh/20071031) MIME-Version: 1.0 To: PHP Developers Mailing List References: <4740C654.3020302@digitalsandwich.com> <47424B4F.2@zend.com> <4743CED7.5050402@avalon.aut.bme.hu> <10845a340711230118t6c19243cg812f22858e3a3c75@mail.gmail.com> <10845a340711230121j1e06040bw15953d02330b622@mail.gmail.com> <388489975.20071123122230@marcus-boerger.de> <4746d50a.1d255e0a.40ab.6e50@mx.google.com> <98D03EE5-9F71-4D12-B212-1A8D325BCF2C@procata.com> In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit Subject: Re: [PHP-DEV] late static binding php6 From: felho@avalon.aut.bme.hu (Gergely Hodicska) Hi! > Of course, we can't make parent:: reference the parent class of the called > one, as it would break BC. > > As in: > class A { } > class B extends A { public static function test() { echo get_class(new > parent), '-', get_parent_class(); } } > class C extends B { } > C::test(); // A-A and not B-B Maybe you missed the point, nobody wants that this code should return B-B, the only difference is in the return value of the get_called_class() function (which is not exists yet, so there is no BC). Best Regards, Felhő