Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:33351 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 36333 invoked by uid 1010); 20 Nov 2007 02:46:04 -0000 Delivered-To: ezmlm-scan-internals@lists.php.net Delivered-To: ezmlm-internals@lists.php.net Received: (qmail 36313 invoked from network); 20 Nov 2007 02:46:04 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 20 Nov 2007 02:46:04 -0000 Authentication-Results: pb1.pair.com smtp.mail=m@digitalsandwich.com; spf=softfail; sender-id=softfail Authentication-Results: pb1.pair.com header.from=m@digitalsandwich.com; sender-id=softfail Received-SPF: softfail (pb1.pair.com: domain digitalsandwich.com does not designate 68.230.241.42 as permitted sender) X-PHP-List-Original-Sender: m@digitalsandwich.com X-Host-Fingerprint: 68.230.241.42 fed1rmmtao104.cox.net Solaris 10 (beta) Received: from [68.230.241.42] ([68.230.241.42:40734] helo=fed1rmmtao104.cox.net) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 16/AE-50425-56A42474 for ; Mon, 19 Nov 2007 21:46:00 -0500 Received: from fed1rmimpo02.cox.net ([70.169.32.72]) by fed1rmmtao104.cox.net (InterMail vM.7.08.02.01 201-2186-121-102-20070209) with ESMTP id <20071120024549.ZWWF14792.fed1rmmtao104.cox.net@fed1rmimpo02.cox.net>; Mon, 19 Nov 2007 21:45:49 -0500 Received: from [192.168.0.102] ([68.96.248.22]) by fed1rmimpo02.cox.net with bizsmtp id Eqlo1Y00L0Vk8yk0000000; Mon, 19 Nov 2007 21:45:48 -0500 Message-ID: <4741D9D1.6030106@digitalsandwich.com> Date: Mon, 19 Nov 2007 18:45:37 +0000 User-Agent: Thunderbird 2.0.0.6 (X11/20071108) MIME-Version: 1.0 To: Stanislav Malyshev , 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> In-Reply-To: <474247A2.5050301@zend.com> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Subject: Re: [PHP-DEV] late static binding php6 From: m@digitalsandwich.com (Mike Lively) Stanislav Malyshev wrote: >>>> in that situation A::find(); would not be able to know it was being >>>> called by B::find() because parent:: is considered an explicit class >>>> name reference. >>> It will be, just not by means of parent::. >> I am missing something....then by what means? > > By means of using get_called_class() and then using this information > to call needed method of needed class. There is still a disconnect somewhere. This will echo 'A'. So like I said you have no way here of telling that B:: was used. Now if you are talking about something like: 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 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 php 6 without getting at least a strict error thrown (Please correct me if I am wrong, I don't have the latest php6 code at the moment.) ?>