Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:68520 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 53942 invoked from network); 14 Aug 2013 17:13:06 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 14 Aug 2013 17:13:06 -0000 Authentication-Results: pb1.pair.com smtp.mail=smalyshev@sugarcrm.com; spf=pass; sender-id=pass Authentication-Results: pb1.pair.com header.from=smalyshev@sugarcrm.com; sender-id=pass Received-SPF: pass (pb1.pair.com: domain sugarcrm.com designates 108.166.43.75 as permitted sender) X-PHP-List-Original-Sender: smalyshev@sugarcrm.com X-Host-Fingerprint: 108.166.43.75 smtp75.ord1c.emailsrvr.com Linux 2.6 Received: from [108.166.43.75] ([108.166.43.75:60616] helo=smtp75.ord1c.emailsrvr.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 50/58-06453-1AABB025 for ; Wed, 14 Aug 2013 13:13:06 -0400 Received: from localhost (localhost.localdomain [127.0.0.1]) by smtp2.relay.ord1c.emailsrvr.com (SMTP Server) with ESMTP id 9091F1E84E4; Wed, 14 Aug 2013 13:13:02 -0400 (EDT) X-Virus-Scanned: OK Received: by smtp2.relay.ord1c.emailsrvr.com (Authenticated sender: smalyshev-AT-sugarcrm.com) with ESMTPSA id 5823F1E84F4; Wed, 14 Aug 2013 13:12:52 -0400 (EDT) Message-ID: <520BBA89.1090208@sugarcrm.com> Date: Wed, 14 Aug 2013 10:12:41 -0700 Organization: SugarCRM User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.7; rv:17.0) Gecko/20130801 Thunderbird/17.0.8 MIME-Version: 1.0 To: Derick Rethans CC: Anthony Ferrara , Sebastian Krebs , Julien Pauli , "internals@lists.php.net" References: <520B4772.8090701@sugarcrm.com> In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Subject: Re: [PHP-DEV] [RFC] Constant Scalar Expressions From: smalyshev@sugarcrm.com (Stas Malyshev) Hi! > Perhaps something for OpCache's optimizer though, if it doesn't already > do that... The problem with that is once you start to do conversions, things quicky go south, as conversions can depend on runtime variables, and people get really weird bugs when their expressions are not evaluated in the same time always. In static context, like with proposed patch, nobody has expectations so saying "it all happens compile-time, runtime settings do not apply" is fine. But when you already have running code that works certain way, changing it may be dangerous. -- Stanislav Malyshev, Software Architect SugarCRM: http://www.sugarcrm.com/ (408)454-6900 ext. 227