Re: [RFC] Constant Scalar Expressions

From: Date: Wed, 14 Aug 2013 17:12:41 +0000
Subject: Re: [RFC] Constant Scalar Expressions
References: 1 2 3 4 5 6 7  Groups: php.internals 
Request: Send a blank email to internals+get-68520@lists.php.net to get a copy of this message
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

« previous php.internals (#68520) next »