com php-src: Add upgrading note for round(-0.0) change: UPGRADING
| From: | Nikita Popov | Date: | Fri, 11 Oct 2019 15:09:06 +0000 |
| Subject: | com php-src: Add upgrading note for round(-0.0) change: UPGRADING | ||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-108887@lists.php.net to get a copy of this message | ||
Commit: aa10e208303e8a36f543b2c0afbc15f1ca980410
Author: Nikita Popov <nikita.ppv@gmail.com> Fri, 11 Oct 2019 17:09:06 +0200
Parents: 3718a955263b6d8ad2735f32df8f99567203726e
Branches: PHP-7.4 master
Link: http://git.php.net/?p=php-src.git;a=commitdiff;h=aa10e208303e8a36f543b2c0afbc15f1ca980410
Log:
Add upgrading note for round(-0.0) change
As cmb pointed out, the new behavior is compliant with POSIX:
https://pubs.opengroup.org/onlinepubs/9699919799/functions/round.html.
Changed paths:
M UPGRADING
Diff:
diff --git a/UPGRADING b/UPGRADING
index eefa590f895..f9a3828e7b3 100644
--- a/UPGRADING
+++ b/UPGRADING
@@ -153,6 +153,7 @@ PHP 7.4 UPGRADE NOTES
considered failures.
. fread() and fwrite() on plain files will now throw a notice on failure,
such as when trying to write to a read-only file resource.
+ . round(-0.0) will now return -0.0 rather than +0.0.
- Tokenizer:
. token_get_all() will now emit a T_BAD_CHARACTER token for unexpected