Re: REQUEST_TIME change in PHP 5.4
| From: | Derick Rethans | Date: | Sat, 24 Dec 2011 11:55:19 +0000 |
| Subject: | Re: REQUEST_TIME change in PHP 5.4 | ||
| References: | 1 2 3 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-57077@lists.php.net to get a copy of this message | ||
On Sat, 24 Dec 2011, Pierre Joye wrote:
> hm, I should read better...
>
> "The REQUEST_TIME value inside server now returns a floating point number"
>
> How does it break BC except if one is doing a strong type test? which
> makes very little sense in this case.
>
> While a fix is easy, (int) casting and works with all previous
> versions, I would like to know how it breaks apps out there.
new DateTime("@{$_SERVER['REQUEST_TIME']}"); f.e.
regards,
Derick
--
http://derickrethans.nl | http://xdebug.org
Like Xdebug? Consider a donation: http://xdebug.org/donate.php
twitter: @derickr and @xdebug