Re: REQUEST_TIME change in PHP 5.4

From: Date: Tue, 27 Dec 2011 17:24:01 +0000
Subject: Re: REQUEST_TIME change in PHP 5.4
References: 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17  Groups: php.internals 
Request: Send a blank email to internals+get-57133@lists.php.net to get a copy of this message
2011/12/27 Ilia Alshanetsky <ilia@ilia.ws>: > 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? -- Patrick

« previous php.internals (#57133) next »