|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2016-11-17 07:49 UTC] requinix@php.net
-Summary: new DateTime() with microsec is BC
+Summary: DateTime with improved microsec BC change not
documented in 7.1 migration guide
-Package: Documentation problem
+Package: Date/time related
-PHP Version: 7.1.0RC6
+PHP Version: 7.1.0RC4
[2016-11-17 07:49 UTC] requinix@php.net
[2016-11-17 08:45 UTC] aa dot vasilenko at gmail dot com
[2016-11-18 10:51 UTC] cmb@php.net
-Status: Open
+Status: Verified
-Assigned To:
+Assigned To: cmb
[2016-11-18 11:09 UTC] cmb@php.net
-Status: Verified
+Status: Closed
[2016-11-18 11:09 UTC] cmb@php.net
[2016-11-18 11:10 UTC] krakjoe@php.net
-Status: Closed
+Status: Verified
[2016-11-18 11:10 UTC] krakjoe@php.net
[2016-11-18 11:11 UTC] cmb@php.net
-Status: Verified
+Status: Closed
[2016-11-18 11:11 UTC] cmb@php.net
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Mon Nov 03 13:00:01 2025 UTC |
Description: ------------ Fix for #48225 in 7.10RC4 broke tests on our side. Basically now it's not possible to assume that 2 `\new DateTime()` are the same. Of course this is bad behavior but I'm nearly sure that a lot of business logic is using it. Would be nice to list it as a breaking change in documentation or "What's New" to prepare developers better for upcoming 7.1 release Test script: --------------- <?php $a = new DateTime(); for ($i = 0; $i < 100; $i++) { //noop, just to let some microseconds pass } $b = new DateTime(); var_dump($a == $b); Expected result: ---------------- true //<7.1RC4 Actual result: -------------- false //>=7.1RC4