summaryrefslogtreecommitdiff
path: root/UPGRADING
diff options
context:
space:
mode:
authorDerick Rethans <github@derickrethans.nl>2016-11-07 16:40:42 +0000
committerDerick Rethans <github@derickrethans.nl>2016-11-07 16:40:42 +0000
commit69a3659d416b3ee74ed4a661b3eec414f18acc33 (patch)
treefea7c37844478d768392405d8136d90f717171a4 /UPGRADING
parente161b0f755fef3c3a7bf61ea8e500ece6f93132c (diff)
downloadphp-git-69a3659d416b3ee74ed4a661b3eec414f18acc33.tar.gz
Add hint that naive DateTime comparisions now are more likely to fail
Diffstat (limited to 'UPGRADING')
-rw-r--r--UPGRADING6
1 files changed, 6 insertions, 0 deletions
diff --git a/UPGRADING b/UPGRADING
index 933233d77e..56c5bdc236 100644
--- 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