Bug #74258 [NEW]: Microseconds are missing in DateTime class

From: Date: Fri, 17 Mar 2017 07:35:48 +0000
Subject: Bug #74258 [NEW]: Microseconds are missing in DateTime class
Groups: php.bugs 
Request: Send a blank email to php-bugs+get-207887@lists.php.net to get a copy of this message
From: dawid dot lakomski at gmail dot com Operating system: Ubuntu 16.04 PHP version: 7.1.3 Package: Date/time related Bug Type: Bug Bug description:Microseconds are missing in DateTime class Description: ------------ After upgrading to PHP 7.1.3 I noticed that microseconds are now missing from DateTime objects. Test script: --------------- <?php var_dump(new \DateTime()); Expected result: ---------------- Microseconds part of $date field should not be 000000 (or not always ;) ) Actual result: -------------- class DateTime#1 (3) { public $date => string(26) "2017-03-17 08:25:48.000000" public $timezone_type => int(3) public $timezone => string(13) "Europe/Berlin" } -- Edit bug report at https://bugs.php.net/bug.php?id=74258&edit=1 -- Try a snapshot (PHP 5.4): https://bugs.php.net/fix.php?id=74258&r=trysnapshot54 Try a snapshot (PHP 5.5): https://bugs.php.net/fix.php?id=74258&r=trysnapshot55 Try a snapshot (trunk): https://bugs.php.net/fix.php?id=74258&r=trysnapshottrunk Fixed in SVN: https://bugs.php.net/fix.php?id=74258&r=fixed Fixed in release: https://bugs.php.net/fix.php?id=74258&r=alreadyfixed Need backtrace: https://bugs.php.net/fix.php?id=74258&r=needtrace Need Reproduce Script: https://bugs.php.net/fix.php?id=74258&r=needscript Try newer version: https://bugs.php.net/fix.php?id=74258&r=oldversion Not developer issue: https://bugs.php.net/fix.php?id=74258&r=support Expected behavior: https://bugs.php.net/fix.php?id=74258&r=notwrong Not enough info: https://bugs.php.net/fix.php?id=74258&r=notenoughinfo Submitted twice: https://bugs.php.net/fix.php?id=74258&r=submittedtwice register_globals: https://bugs.php.net/fix.php?id=74258&r=globals PHP 4 support discontinued: https://bugs.php.net/fix.php?id=74258&r=php4 Daylight Savings: https://bugs.php.net/fix.php?id=74258&r=dst IIS Stability: https://bugs.php.net/fix.php?id=74258&r=isapi Install GNU Sed: https://bugs.php.net/fix.php?id=74258&r=gnused Floating point limitations: https://bugs.php.net/fix.php?id=74258&r=float No Zend Extensions: https://bugs.php.net/fix.php?id=74258&r=nozend MySQL Configuration Error: https://bugs.php.net/fix.php?id=74258&r=mysqlcfg

« previous php.bugs (#207887) next »