Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:33352 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 41798 invoked by uid 1010); 20 Nov 2007 02:49:58 -0000 Delivered-To: ezmlm-scan-internals@lists.php.net Delivered-To: ezmlm-internals@lists.php.net Received: (qmail 41775 invoked from network); 20 Nov 2007 02:49:58 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 20 Nov 2007 02:49:58 -0000 Authentication-Results: pb1.pair.com smtp.mail=stas@zend.com; spf=pass; sender-id=pass Authentication-Results: pb1.pair.com header.from=stas@zend.com; sender-id=pass Received-SPF: pass (pb1.pair.com: domain zend.com designates 212.25.124.162 as permitted sender) X-PHP-List-Original-Sender: stas@zend.com X-Host-Fingerprint: 212.25.124.162 mail.zend.com Windows 2000 SP4, XP SP1 Received: from [212.25.124.162] ([212.25.124.162:26824] helo=mx1.zend.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id F9/BF-50425-55B42474 for ; Mon, 19 Nov 2007 21:49:58 -0500 Received: from us-ex1.zend.com ([192.168.16.5]) by mx1.zend.com with Microsoft SMTPSVC(6.0.3790.3959); Tue, 20 Nov 2007 04:49:54 +0200 Received: from [192.168.16.91] ([192.168.16.91]) by us-ex1.zend.com with Microsoft SMTPSVC(6.0.3790.1830); Mon, 19 Nov 2007 18:49:51 -0800 Message-ID: <47424B4F.2@zend.com> Date: Mon, 19 Nov 2007 18:49:51 -0800 Organization: Zend Technologies User-Agent: Thunderbird 2.0.0.9 (Windows/20071031) MIME-Version: 1.0 To: Mike Lively CC: PHP Developers Mailing List References: <4740C654.3020302@digitalsandwich.com> <474154E0.4070302@zend.com> <47417C65.8010708@iamjochem.com> <474130B3.9070303@digitalsandwich.com> <4741DC81.6000506@zend.com> <4741D574.2020800@digitalsandwich.com> <474247A2.5050301@zend.com> <4741D9D1.6030106@digitalsandwich.com> In-Reply-To: <4741D9D1.6030106@digitalsandwich.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-OriginalArrivalTime: 20 Nov 2007 02:49:51.0228 (UTC) FILETIME=[058F3BC0:01C82B20] Subject: Re: [PHP-DEV] late static binding php6 From: stas@zend.com (Stanislav Malyshev) > parent::test(); What do you want parent::test() to mean? > This will echo 'A'. So like I said you have no way here of telling that > B:: was used. Because it wasn't. parent::test() means A::test(). 'parent::' means 'parent class of the class where this statement is' in PHP. For B, it's A. > Then there are two problems (sort of). First problem being, then why > bother with lsb, you can do this already (which more so a 'wth' as If you can do it - do it. > opposed to a problem.) The second and much more prevelent problem is > that iirc you cannot do this kind of loose inheritance with statics in What is 'loose inheritance'? -- Stanislav Malyshev, Zend Software Architect stas@zend.com http://www.zend.com/ (408)253-8829 MSN: stas@zend.com