]> granicus.if.org Git - php/commitdiff
Add upgrading note for round(-0.0) change
authorNikita Popov <nikita.ppv@gmail.com>
Fri, 11 Oct 2019 15:09:06 +0000 (17:09 +0200)
committerNikita Popov <nikita.ppv@gmail.com>
Fri, 11 Oct 2019 15:09:06 +0000 (17:09 +0200)
As cmb pointed out, the new behavior is compliant with POSIX:
https://pubs.opengroup.org/onlinepubs/9699919799/functions/round.html.

UPGRADING

index eefa590f8952aa834b3b35a5553b14286e4366ff..f9a3828e7b32857cc65afb90e6415a3c0c096f31 100644 (file)
--- 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