Re: REQUEST_TIME change in PHP 5.4

From: Date: Sat, 24 Dec 2011 15:07:09 +0000
Subject: Re: REQUEST_TIME change in PHP 5.4
References: 1 2 3 4 5  Groups: php.internals 
Request: Send a blank email to internals+get-57088@lists.php.net to get a copy of this message
On Sat, Dec 24, 2011 at 3:47 PM, André Rømcke <ar@ez.no> wrote: > Yes, this is the one from Zeta Components MvcTools. > In eZ Publish it was db based session gc using REQUEST_TIME > and compatibility for potential extensions that might have used this > variable via eZ Publish > > api: https://github.com/ezsystems/ezpublish/commit/3483c623769aa9ed3be7b6f33e3579cf8a8efd45 > > In both cases a (int) was added in front of the variable to make sure it > still behaves the same, so not a big deal. > But as also mentioned, changes like this requires patching to > be compatible with 5.4. > > So unless this is done to be inline with some standard on such a server > variable, I would suggest placing microtime on a separate server variable > (since it is indeed useful to have it for time accumulators and performance > metrics). Right, and that's why I would be in favour of a BC change, maybe by introducing a REQUEST_TIME_FLOAT instead, so people willing to use the float version can still have it while the existing code needs no change. Adding Ilia (who made that change) and the RMs to the list. Cheers, -- Pierre @pierrejoye | http://blog.thepimp.net | http://www.libgd.org

« previous php.internals (#57088) next »