Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:40146 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 83046 invoked from network); 29 Aug 2008 20:05:52 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 29 Aug 2008 20:05:52 -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.163 as permitted sender) X-PHP-List-Original-Sender: stas@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:65297] helo=il-gw1.zend.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 90/30-10364-F9658B84 for ; Fri, 29 Aug 2008 16:05:52 -0400 Received: from us-ex1.zend.com ([192.168.16.5]) by il-gw1.zend.com with Microsoft SMTPSVC(6.0.3790.3959); Fri, 29 Aug 2008 23:06:52 +0300 Received: from [192.168.16.110] ([192.168.16.110]) by us-ex1.zend.com with Microsoft SMTPSVC(6.0.3790.3959); Fri, 29 Aug 2008 13:06:49 -0700 Message-ID: <48B856D9.7080906@zend.com> Date: Fri, 29 Aug 2008 13:06:49 -0700 Organization: Zend Technologies User-Agent: Thunderbird 2.0.0.16 (Windows/20080708) MIME-Version: 1.0 To: Matt Wilmas CC: internals@lists.php.net, Dmitry Stogov References: <013e01c8f257$1e1bbcf0$0201a8c0@pc1> <4890B18E.7000500@zend.com> <00e001c8f302$e8100fb0$0201a8c0@pc1> <4891A769.6090306@zend.com> <026201c909dc$46875860$0201a8c0@pc1> In-Reply-To: <026201c909dc$46875860$0201a8c0@pc1> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-OriginalArrivalTime: 29 Aug 2008 20:06:49.0951 (UTC) FILETIME=[C5B62EF0:01C90A12] Subject: Re: [PHP-DEV] Re: [PATCH] Constant expr folding (again), and other things From: stas@zend.com (Stanislav Malyshev) Hi! > static $a = -'abc'; // 0 > static $b = +'abc'; // abc > $c = +'abc'; // 0 > } We could get into trouble here. Imagine: static $a = -'12.8'; This should be -12.8, but what if locale changes and . is no longer decimal separator? Moreover, what if locale changes between compile and runtime? We get entirely different code now. > Well, I don't know if it can be tossed in quickly at this time, but there ya > go since I think it's pretty basic! ;^) I think it's not the feature that can be "tossed in quickly" - it can have some obscure side effects, as I described in my later emails. -- Stanislav Malyshev, Zend Software Architect stas@zend.com http://www.zend.com/ (408)253-8829 MSN: stas@zend.com