Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:36102 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 43669 invoked from network); 11 Mar 2008 23:31:12 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 11 Mar 2008 23:31:12 -0000 Authentication-Results: pb1.pair.com header.from=stas@zend.com; sender-id=pass Authentication-Results: pb1.pair.com smtp.mail=stas@zend.com; spf=pass; 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:60574] helo=mx1.zend.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 08/B3-21537-F3617D74 for ; Tue, 11 Mar 2008 18:31:12 -0500 Received: from us-ex1.zend.com ([192.168.16.5]) by mx1.zend.com with Microsoft SMTPSVC(6.0.3790.3959); Wed, 12 Mar 2008 01:31:29 +0200 Received: from [192.168.16.115] ([192.168.16.115]) by us-ex1.zend.com with Microsoft SMTPSVC(6.0.3790.3959); Tue, 11 Mar 2008 16:31:26 -0700 Message-ID: <47D71639.1040403@zend.com> Date: Tue, 11 Mar 2008 16:31:05 -0700 Organization: Zend Technologies User-Agent: Thunderbird 2.0.0.12 (Windows/20080213) MIME-Version: 1.0 To: Mike Lively CC: =?ISO-8859-1?Q?Johannes_Schl=FCter?= , PHP Internals List References: <1204823427.30934.9.camel@goldfinger.johannes.nop> <8d7b8c130803092152l6014902cs7b599cec0775015a@mail.gmail.com> <47D56696.7010100@zend.com> <8d7b8c130803101817q129b37ccxdaa069225a0ed0e2@mail.gmail.com> <47D5E32E.4070301@zend.com> <8d7b8c130803110656x6ff96ad6q74cbd902e4adeebf@mail.gmail.com> In-Reply-To: <8d7b8c130803110656x6ff96ad6q74cbd902e4adeebf@mail.gmail.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-OriginalArrivalTime: 11 Mar 2008 23:31:26.0390 (UTC) FILETIME=[0666DD60:01C883D0] Subject: Re: [PHP-DEV] 5.3 Release Planning From: stas@zend.com (Stanislav Malyshev) Hi! > Of course parent:: still means parent. The change in behavior from the > current patch is just that once you call parent::someMethod you will > still have access to overridden methods in child classes which with the > current patch is not possible. Again, it just provides complete > polymorphism for statics. OK, looks like I misunderstood what your patch does. Sorry for that. However, I'm still concerned that foo:: and parent:: would work differently. IMO, better solution would be to have all :: calls change called_class, but have also some way to call it without changing called_class. Something like your forward_static_call, but I'm not sure not using callbacks is a good idea - all caller function use callbacks now. Actually, what I'd do would be to generalize forward_static_call (which I think also needs better name :) and call_user_func into one function (internally) that has parameter which tells if to update or not update called_class. -- Stanislav Malyshev, Zend Software Architect stas@zend.com http://www.zend.com/ (408)253-8829 MSN: stas@zend.com