]> granicus.if.org Git - php/commitdiff
Add hint that naive DateTime comparisions now are more likely to fail
authorDerick Rethans <github@derickrethans.nl>
Mon, 7 Nov 2016 16:40:42 +0000 (16:40 +0000)
committerDerick Rethans <github@derickrethans.nl>
Mon, 7 Nov 2016 16:40:42 +0000 (16:40 +0000)
UPGRADING

index 933233d77ef48c1bf9c5d2f86e86b71c81c9edea..56c5bdc236f7a62e9575f941f64f0b7fb07c76b1 100644 (file)
--- a/UPGRADING
+++ b/UPGRADING
@@ -280,6 +280,12 @@ PHP 7.1 UPGRADE NOTES
   . Timezone initialization failure from serialized data will now throw an
     instance of Error from __wakeup() or __set_state() instead of resulting in
     a fatal error.
+  . DateTime and DateTimeImmutable now properly incorporate microseconds when
+    constructed from the current time, either explicitly or with a relative
+    string (e.g. "first day of next month"). This means that naive comparisons
+    of two newly created instances will now more likely return FALSE instead of
+    TRUE:
+      new DateTime() == new DateTime();
 
 - DBA:
   . Data modification functions (e.g.: dba_insert()) now throw an instance of