Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:57251 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 15212 invoked from network); 6 Jan 2012 13:41:20 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 6 Jan 2012 13:41:20 -0000 Authentication-Results: pb1.pair.com header.from=patrick.allaert@gmail.com; sender-id=pass Authentication-Results: pb1.pair.com smtp.mail=patrick.allaert@gmail.com; spf=pass; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 74.125.82.54 as permitted sender) X-PHP-List-Original-Sender: patrick.allaert@gmail.com X-Host-Fingerprint: 74.125.82.54 mail-ww0-f54.google.com Received: from [74.125.82.54] ([74.125.82.54:33740] helo=mail-ww0-f54.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 4D/D4-21551-FF9F60F4 for ; Fri, 06 Jan 2012 08:41:19 -0500 Received: by wgbdt13 with SMTP id dt13so1502755wgb.11 for ; Fri, 06 Jan 2012 05:41:16 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=mime-version:sender:in-reply-to:references:date :x-google-sender-auth:message-id:subject:from:to:cc:content-type :content-transfer-encoding; bh=8Dg+/lhiRYld5/PgzTTrGxDfwURA8jUbz/yCGvIA5A0=; b=puEpOJ05mKrTyXuIhqOlfKpEg0bO6R+UL4+aaEKXq48a075x16X4gtrihIRha1FnND ckbdEUjVkI0CWE5Cyyobz13wbwh93mP2TxKA2JBF2BvfXbqp1rwJavv7pnfP9n8qfQnq oY/LtHnsEcF6ENE6RRAEB0LbarO4/XCAmdRpY= MIME-Version: 1.0 Received: by 10.180.76.8 with SMTP id g8mr8784497wiw.3.1325857276217; Fri, 06 Jan 2012 05:41:16 -0800 (PST) Sender: patrick.allaert@gmail.com Received: by 10.223.85.195 with HTTP; Fri, 6 Jan 2012 05:41:16 -0800 (PST) In-Reply-To: References: Date: Fri, 6 Jan 2012 14:41:16 +0100 X-Google-Sender-Auth: LkDsISd7vX0WfD8_X-sQHZsJutk Message-ID: To: =?UTF-8?B?QW5kcsOpIFLDuG1ja2U=?= Cc: Ferenc Kovacs , Ilia Alshanetsky , PHP Developers Mailing List , Pierre Joye , David Soria Parra , Stas Malyshev , Derick Rethans Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Subject: Re: [PHP-DEV] REQUEST_TIME change in PHP 5.4 From: patrickallaert@php.net (Patrick ALLAERT) 2012/1/6 Andr=C3=A9 R=C3=B8mcke > > On Tue, Dec 27, 2011 at 9:01 PM, Ferenc Kovacs wrote: >> >> >> >> On Tue, Dec 27, 2011 at 6:24 PM, Patrick ALLAERT wrote: >>> >>> 2011/12/27 Ilia Alshanetsky : >>> > The change is inside 5.4 version which adjust breaks BC. >>> >>> I don't follow you here Ilia. >>> >>> As per https://wiki.php.net/rfc/releaseprocess: >>> * "Backward compatibility must be respected with the same major >>> releases, for example from 5.2 to 5.6." >>> * Going from x.y.z to x.y+1.z, it is ok to break *binary* >>> compatibility but "Backward compatibility must be kept". >>> >>> However: >>> >>> new DateTime("@{$_SERVER['REQUEST_TIME']}"); >>> >>> works in 5.3 but not in 5.4. >>> AFAIK, creating a DateTime object based on the REQUEST_TIME is not an >>> exotic thing. >>> For sure, the fix is easy, but that is not the point, it *will* >>> actually break applications. >>> >>> Did I miss something? >> >> >> I think that he is referring to that we already break BC with 5.4 (remov= ing magic_quotes, register_globals,=C2=A0break/continue $var,=C2=A0allow_ca= ll_time_pass_reference,=C2=A0some deprecated session_ functions, safe_mode,= etc. for a complete list see=C2=A0http://svn.php.net/viewvc/php/php-src/br= anches/PHP_5_4/UPGRADING?view=3Dmarkup=C2=A0) > > > > These are=C2=A0mostly=C2=A0removal of features, and most of these have be= en deprecated for quite a while. > The REQUEST_TIME change however is a change of=C2=A0behaviour=C2=A0that h= as not been warned about up front, which imo is a worse BC break then most = of the rest. And arguing for ignoring one bc break/bug/mistake because ther= e are others is.. well.. :) > > >> >> >> However I tend to agree with you, that this BC break isn't really worth = it, we can see that there are common apps stumbling across this change, and= albeit the new behavior can be useful for many people, they wouldn't reall= y mind if we add this as a new variable imo. > > > > Great, so I do think most people agree that this can, and should be fixed= before 5.4 by instead expose microtime on a=C2=A0separate=C2=A0variable ca= lled=C2=A0REQUEST_TIME_FLOAT. > > +1 Fixed in master and PHP_5_4 as per discussed/suggested by introducing $_SERVER['REQUEST_TIME_FLOAT']. -- Patrick