Bug #76190 [Opn->Fbk]: \DateTime::__construct with microsecond failed
| From: | requinix@php.net | Date: | Fri, 06 Apr 2018 10:22:41 +0000 |
| Subject: | Bug #76190 [Opn->Fbk]: \DateTime::__construct with microsecond failed | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-214631@lists.php.net to get a copy of this message | ||
Edit report at https://bugs.php.net/bug.php?id=76190&edit=1
ID: 76190
Updated by: requinix@php.net
Reported by: nicolas dot levee at gmail dot com
Summary: \DateTime::__construct with microsecond failed
-Status: Open
+Status: Feedback
Type: Bug
Package: Date/time related
Operating System: Any
PHP Version: 7.0.29
Block user comment: N
Private report: N
New Comment:
The SAPI shouldn't matter. Are you sure you have the same version of PHP for both?
Previous Comments:
------------------------------------------------------------------------
[2018-04-06 09:31:39] nicolas dot levee at gmail dot com
Description:
------------
My PHP Version 7.0.26
The \DateTime::__construct failed to format microsecond on Apache SAPI but succeed on CLI
Test script:
---------------
echo (new \DateTime("2018-04-06 09:42:14.999273"))->format("U.u");
Expected result:
----------------
1523000534.999273
Actual result:
--------------
1523000534.000000
------------------------------------------------------------------------
--
Edit this bug report at https://bugs.php.net/bug.php?id=76190&edit=1