Bug #76190 [NEW]: \DateTime::__construct with microsecond failed

From: Date: Fri, 06 Apr 2018 09:31:40 +0000
Subject: Bug #76190 [NEW]: \DateTime::__construct with microsecond failed
Groups: php.bugs 
Request: Send a blank email to php-bugs+get-214630@lists.php.net to get a copy of this message
From: nicolas dot levee at gmail dot com Operating system: Any PHP version: 7.0.29 Package: Date/time related Bug Type: Bug Bug description:\DateTime::__construct with microsecond failed 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 bug report at https://bugs.php.net/bug.php?id=76190&edit=1 -- Try a snapshot (PHP 5.4): https://bugs.php.net/fix.php?id=76190&r=trysnapshot54 Try a snapshot (PHP 5.5): https://bugs.php.net/fix.php?id=76190&r=trysnapshot55 Try a snapshot (trunk): https://bugs.php.net/fix.php?id=76190&r=trysnapshottrunk Fixed in SVN: https://bugs.php.net/fix.php?id=76190&r=fixed Fixed in release: https://bugs.php.net/fix.php?id=76190&r=alreadyfixed Need backtrace: https://bugs.php.net/fix.php?id=76190&r=needtrace Need Reproduce Script: https://bugs.php.net/fix.php?id=76190&r=needscript Try newer version: https://bugs.php.net/fix.php?id=76190&r=oldversion Not developer issue: https://bugs.php.net/fix.php?id=76190&r=support Expected behavior: https://bugs.php.net/fix.php?id=76190&r=notwrong Not enough info: https://bugs.php.net/fix.php?id=76190&r=notenoughinfo Submitted twice: https://bugs.php.net/fix.php?id=76190&r=submittedtwice register_globals: https://bugs.php.net/fix.php?id=76190&r=globals PHP 4 support discontinued: https://bugs.php.net/fix.php?id=76190&r=php4 Daylight Savings: https://bugs.php.net/fix.php?id=76190&r=dst IIS Stability: https://bugs.php.net/fix.php?id=76190&r=isapi Install GNU Sed: https://bugs.php.net/fix.php?id=76190&r=gnused Floating point limitations: https://bugs.php.net/fix.php?id=76190&r=float No Zend Extensions: https://bugs.php.net/fix.php?id=76190&r=nozend MySQL Configuration Error: https://bugs.php.net/fix.php?id=76190&r=mysqlcfg

« previous php.bugs (#214630) next »