Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:38492 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 58043 invoked from network); 21 Jun 2008 00:52:06 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 21 Jun 2008 00:52:06 -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:63995] helo=mx1.zend.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 60/8A-12821-3B05C584 for ; Fri, 20 Jun 2008 20:52:05 -0400 Received: from us-ex1.zend.com ([192.168.16.5]) by mx1.zend.com with Microsoft SMTPSVC(6.0.3790.3959); Sat, 21 Jun 2008 03:52:12 +0300 Received: from [192.168.16.110] ([192.168.16.110]) by us-ex1.zend.com with Microsoft SMTPSVC(6.0.3790.3959); Fri, 20 Jun 2008 17:51:28 -0700 Message-ID: <485C5081.1050609@zend.com> Date: Fri, 20 Jun 2008 17:51:13 -0700 Organization: Zend Technologies User-Agent: Thunderbird 2.0.0.14 (Windows/20080421) MIME-Version: 1.0 To: Etienne Kneuss CC: PHP internals References: In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-OriginalArrivalTime: 21 Jun 2008 00:51:28.0246 (UTC) FILETIME=[F040B160:01C8D338] Subject: Re: [PHP-DEV] LSB forward_static_call() From: stas@zend.com (Stanislav Malyshev) Hi! > So, I really would like to revert that foward_static_call stuff and > implement the parent:: patch instead, while it's still possible. > > thoughts? Didn't we discuss that already? Adding magic to parent:: is not a good idea, it's very basic language construct and should work simple. LSB is an advanced feature, which probably would be used deep inside library guts and thus can use more elaborate syntax. On top of that, by making parent:: forward called class name, you remove the possibility of doing non-forwarding call to the parent class. As for it being slow - how slow it is? Does it really so slow that it makes real-life application that otherwise would be fast to be slow? Or it's just "couple more CPU cycles" slow? I suspect the latter - and thus I don't think speed optimizations belong there. -- Stanislav Malyshev, Zend Software Architect stas@zend.com http://www.zend.com/ (408)253-8829 MSN: stas@zend.com