Re: RFC: mark functions as const for possible optimizations

From: Date: Sat, 15 Sep 2007 11:45:12 +0000
Subject: Re: RFC: mark functions as const for possible optimizations
References: 1  Groups: php.internals 
Request: Send a blank email to internals+get-32329@lists.php.net to get a copy of this message
On Fri, 14 Sep 2007 18:01:13 +0100, in php.internals nlopess@php.net ("Nuno Lopes") wrote: >My proposal is the following: >some functions when fed with constant arguments always return a constant >value, too. e.g.: >strlen('abcd') === 4. I like the general idea. Would there be some caveats with stuff like this if it is possible to change the charset at runtime? I guess it is important to be aware of whether a function is affected by different settings (and if these settings can be changed at runtime) to conclude if a function really is deterministic at this level. -- - Peter Brodersen

« previous php.internals (#32329) next »