Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:57136 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 91146 invoked from network); 27 Dec 2011 20:01:23 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 27 Dec 2011 20:01:23 -0000 Authentication-Results: pb1.pair.com header.from=tyra3l@gmail.com; sender-id=pass Authentication-Results: pb1.pair.com smtp.mail=tyra3l@gmail.com; spf=pass; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 209.85.216.42 as permitted sender) X-PHP-List-Original-Sender: tyra3l@gmail.com X-Host-Fingerprint: 209.85.216.42 mail-qw0-f42.google.com Received: from [209.85.216.42] ([209.85.216.42:48162] helo=mail-qw0-f42.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 48/12-10976-1142AFE4 for ; Tue, 27 Dec 2011 15:01:21 -0500 Received: by qabj40 with SMTP id j40so7088998qab.8 for ; Tue, 27 Dec 2011 12:01:18 -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; bh=QsT4gAzMt+go8uoMT1NCK/vg2qwjmjD+UJvQkGl1sRM=; b=ksTM0G8lHJ/mIQZjjESFhC+5MU9Nq47B9bV8Gt14jy9w4U6Ts0TXpmh4AQcw6axr+G 0CDsYlP2RD7HPCbEj+yyxHXjWXoUwQ0TBEVLtj7lSsOAoVrvSjz3fSzULwz6qo2ro7F1 uc8iW4yGBtnJuQGErErwVYrzGIeguLi9sfkWI= MIME-Version: 1.0 Received: by 10.224.187.20 with SMTP id cu20mr34783163qab.43.1325016078738; Tue, 27 Dec 2011 12:01:18 -0800 (PST) Received: by 10.229.54.140 with HTTP; Tue, 27 Dec 2011 12:01:18 -0800 (PST) In-Reply-To: References: Date: Tue, 27 Dec 2011 21:01:18 +0100 Message-ID: To: Patrick ALLAERT Cc: Ilia Alshanetsky , PHP Developers Mailing List , Pierre Joye , David Soria Parra , =?UTF-8?B?QW5kcsOpIFLDuG1ja2U=?= , Stas Malyshev , Derick Rethans Content-Type: multipart/alternative; boundary=20cf30334dc7b1e75904b518585f Subject: Re: [PHP-DEV] REQUEST_TIME change in PHP 5.4 From: tyra3l@gmail.com (Ferenc Kovacs) --20cf30334dc7b1e75904b518585f Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable On Tue, Dec 27, 2011 at 6:24 PM, Patrick ALLAERT wr= ote: > 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 (removing magic_quotes, register_globals, break/continue $var, allow_call_time_pass_reference, some deprecated session_ functions, safe_mode, etc. for a complete list see http://svn.php.net/viewvc/php/php-src/branches/PHP_5_4/UPGRADING?view=3Dmar= kup ) 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 really mind if we add this as a new variable imo. --=20 Ferenc Kov=C3=A1cs @Tyr43l - http://tyrael.hu --20cf30334dc7b1e75904b518585f--