Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:40128 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 67137 invoked from network); 29 Aug 2008 10:01:16 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 29 Aug 2008 10:01:16 -0000 Authentication-Results: pb1.pair.com header.from=dmitry@zend.com; sender-id=pass Authentication-Results: pb1.pair.com smtp.mail=dmitry@zend.com; spf=pass; sender-id=pass Received-SPF: pass (pb1.pair.com: domain zend.com designates 212.25.124.163 as permitted sender) X-PHP-List-Original-Sender: dmitry@zend.com X-Host-Fingerprint: 212.25.124.163 il-gw1.zend.com Windows 2000 SP4, XP SP1 Received: from [212.25.124.163] ([212.25.124.163:60231] helo=il-gw1.zend.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id F5/E5-44384-AE8C7B84 for ; Fri, 29 Aug 2008 06:01:16 -0400 Received: from ws.home ([10.1.1.1]) by il-gw1.zend.com with Microsoft SMTPSVC(6.0.3790.3959); Fri, 29 Aug 2008 13:02:16 +0300 Message-ID: <48B7C8E7.5030307@zend.com> Date: Fri, 29 Aug 2008 14:01:11 +0400 User-Agent: Thunderbird 2.0.0.16 (X11/20080723) MIME-Version: 1.0 To: Matt Wilmas CC: internals@lists.php.net References: <00ea01c8a160$2edd8160$0201a8c0@pc1> <016c01c8eccd$e28cfac0$0201a8c0@pc1> <488835D0.1040005@zend.com> <00e501c8ed77$3498cf20$0201a8c0@pc1> <48889901.8000008@zend.com> <015101c8f306$34c358f0$0201a8c0@pc1> <4891CC46.2020208@zend.com> <020e01c8f32e$a82a9fb0$0201a8c0@pc1> <4891F189.7030202@zend.com> <00be01c90919$0592d0f0$0201a8c0@pc1> <48B7BF19.5020007@zend.com> <012201c909bd$580f0ca0$0201a8c0@pc1> In-Reply-To: <012201c909bd$580f0ca0$0201a8c0@pc1> X-Enigmail-Version: 0.95.7 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-OriginalArrivalTime: 29 Aug 2008 10:02:16.0180 (UTC) FILETIME=[50DBFB40:01C909BE] Subject: Re: [PHP-DEV] [PATCH] No runtime fetching of built-in global constants From: dmitry@zend.com (Dmitry Stogov) Ok, I'm going to commit it. Could you remember why we disabled constants substitution for ZEND_CT? Thanks. Dmitry. Matt Wilmas wrote: > Hi Dmitry, > > Yeah, that looks good too, and should work the same way. :-) > > > Thanks, > Matt > > > ----- Original Message ----- > From: "Dmitry Stogov" > Sent: Friday, August 29, 2008 > >> Hi Matt, >> >> I updated your patch a little bit to make it more clear (from my point >> of view). >> Please take a look. >> >> Thanks. Dmitry. >> >> Matt Wilmas wrote: >>> Hi Dmitry, >>> >>> Well, it's been awhile since Alpha 1 :-), so I wanted to finally resend > this >>> before Alpha 2! I agree that the additional optimization probably > wouldn't >>> happen often, as there won't be that much namespace usage right away, I >>> assume. But I think it makes sense to handle :: prefix constants, since >>> they're known to have global scope, and I can see the future [online] >>> optimization tip: "When using namespaces, use :: for global constants to > get >>> compile-time substitution." ;-) >>> >>> The code is the same as before, just updated the patch. It doesn't > really >>> seem less clear, to me, than the current code. In > zend_do_fetch_constant(), >>> the "check_namespace" variable may be better named something like >>> "from_namespace" according to my changes, to be more clear, but I left > that >>> out to make the patch as simple as possible. >>> >>> http://realplain.com/php/ct_const_fixes.diff >>> http://realplain.com/php/ct_const_fixes_5_3.diff >>> >>> >>> Thanks, >>> Matt >