Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:57090 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 75278 invoked from network); 24 Dec 2011 15:25:16 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 24 Dec 2011 15:25:16 -0000 Authentication-Results: pb1.pair.com header.from=pierre.php@gmail.com; sender-id=pass Authentication-Results: pb1.pair.com smtp.mail=pierre.php@gmail.com; spf=pass; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 209.85.160.170 as permitted sender) X-PHP-List-Original-Sender: pierre.php@gmail.com X-Host-Fingerprint: 209.85.160.170 mail-gy0-f170.google.com Received: from [209.85.160.170] ([209.85.160.170:61371] helo=mail-gy0-f170.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 26/2E-16446-BDEE5FE4 for ; Sat, 24 Dec 2011 10:25:15 -0500 Received: by ghrr1 with SMTP id r1so3614385ghr.29 for ; Sat, 24 Dec 2011 07:25:12 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type:content-transfer-encoding; bh=Fl0evuaPXPyaz5aXLkET2qRppSYdnDFbrXIMAqTYi14=; b=KlLwzsKV9nxKyCjTcns+s4VkeH7TfPPTJdK6XGGFWksCZjIV8DWqsQKg1IBqPUFdS5 u0RCOowyeVOXdhOIP5uIHpExeHuPV91aVXkSIkauKP9xVpBmq5NFLTQPF1Xp+t6ZyHpJ oXU5ZKoSKOr1ZNCSgqhdJ7M1Xb1iz8Jc7WtIg= MIME-Version: 1.0 Received: by 10.236.128.197 with SMTP id f45mr25810583yhi.44.1324740312750; Sat, 24 Dec 2011 07:25:12 -0800 (PST) Received: by 10.146.204.6 with HTTP; Sat, 24 Dec 2011 07:25:12 -0800 (PST) In-Reply-To: References: Date: Sat, 24 Dec 2011 16:25:12 +0100 Message-ID: To: Ilia Alshanetsky Cc: =?ISO-8859-1?B?QW5kcukgUvhtY2tl?= , David Soria Parra , Stas Malyshev , Derick Rethans , PHP Developers Mailing List Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Subject: Re: [PHP-DEV] REQUEST_TIME change in PHP 5.4 From: pierre.php@gmail.com (Pierre Joye) hi Ilia, Right but there is a clear BC break here. And yes I really don't like how datetime deals with that but it is how it is, and it is certainly the only case where it fails (or almost). On Sat, Dec 24, 2011 at 4:18 PM, Ilia Alshanetsky wrote: > In most instances integers and floats can be used interchangeably, > which is why the patch was written in the way that it was. In the few > rare cases (int) cast takes care of the trick, there is a substantial > benefit for timings etc... to have higher precision timestamp > available at no additional cost. Introducing additional server > variables just makes things inconsistent, especially this late in the > release cycle. > > On Sat, Dec 24, 2011 at 10:07 AM, Pierre Joye wrot= e: >> On Sat, Dec 24, 2011 at 3:47 PM, Andr=E9 R=F8mcke wrote: >> >>> Yes, this is the one from Zeta Components MvcTools. >>> In eZ Publish it was db based session gc using REQUEST_TIME >>> and=A0compatibility=A0for potential extensions that might have used thi= s >>> variable via eZ Publish >>> api:=A0https://github.com/ezsystems/ezpublish/commit/3483c623769aa9ed3b= e7b6f33e3579cf8a8efd45 >>> >>> In both cases a (int) was added in front of the variable to make sure i= t >>> still behaves the same, so=A0not a big deal. >>> But as also mentioned, changes like this=A0requires patching=A0to >>> be=A0compatible=A0with 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=A0separate=A0server va= riable >>> (since it is indeed useful to have it for time accumulators and perform= ance >>> 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 --=20 Pierre @pierrejoye | http://blog.thepimp.net | http://www.libgd.org