com php-src: Add hint that naive DateTime comparisions now are more likely to fail: UPGRADING

From: Date: Mon, 07 Nov 2016 16:40:42 +0000
Subject: com php-src: Add hint that naive DateTime comparisions now are more likely to fail: UPGRADING
Groups: php.cvs 
Request: Send a blank email to php-cvs+get-95422@lists.php.net to get a copy of this message
Commit: 69a3659d416b3ee74ed4a661b3eec414f18acc33 Author: Derick Rethans <github@derickrethans.nl> Mon, 7 Nov 2016 16:40:42 +0000 Parents: e161b0f755fef3c3a7bf61ea8e500ece6f93132c Branches: PHP-7.1 master Link: http://git.php.net/?p=php-src.git;a=commitdiff;h=69a3659d416b3ee74ed4a661b3eec414f18acc33 Log: Add hint that naive DateTime comparisions now are more likely to fail Changed paths: M UPGRADING Diff: diff --git a/UPGRADING b/UPGRADING index 933233d...56c5bdc 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

« previous php.cvs (#95422) next »