Details
-
Bug
-
Resolution: Fixed
-
High
-
2011.10, 2011.11, 4.5.0, 4.6.0
-
None
-
Operating System:
PHP Version: 5.4 RC4 (Apache 2 SAPI)
Database and version:
Browser (and version):
Description
Since PHP 5.4, $_SERVER['REQUEST_TIME'] includes microseconds, so it cannot be used any more directly with DateTime as it generates an exception :
DateTime::__construct(): Failed to parse time string (@1324373290.765) at position 12 (7): Unexpected character
This issue can be reproduced especially using REST as MvcTools uses REQUEST_TIME directly to construct the request date (see ezcMvcHttpRequestParser::processDate().
Yes, this is an issue to be fixed in Zeta components, but this can be easily and safely workarounded in eZ Publish.