summaryrefslogtreecommitdiff
path: root/UPGRADING
diff options
context:
space:
mode:
authorLibor M <liborm85@gmail.com>2015-10-17 08:09:16 +0200
committerNikita Popov <nikic@php.net>2017-01-07 19:10:31 +0100
commit90dcbbe3cb9aed197cbb854afe2eed0f6479a95a (patch)
tree8f942c436ab040f1bb3d4893c88aa5d3ef68aa6e /UPGRADING
parent00062d2ea8a433582d96e37772fa8928c8454938 (diff)
downloadphp-git-90dcbbe3cb9aed197cbb854afe2eed0f6479a95a.tar.gz
Fixed bug #46564
bcmod() no longer truncates fractionals to integers. This matches the behavior of fmod(). It also matches the behavior of bcpowmod(). It also matches the behavior of bcmod() in HHVM.
Diffstat (limited to 'UPGRADING')
-rw-r--r--UPGRADING5
1 files changed, 5 insertions, 0 deletions
diff --git a/UPGRADING b/UPGRADING
index b3c1d19aa0..7766d4e363 100644
--- a/UPGRADING
+++ b/UPGRADING
@@ -37,6 +37,11 @@ PHP 7.2 UPGRADE NOTES
property names would become inaccessible string keys.
. Minimum supported Windows versions are Windows 7/Server 2008 R2.
+- BCMath:
+ . The bcmod() function no longer truncates fractional numbers to integers. As
+ such, its behavior now follows fmod() rather than the `%` operator. For
+ example `bcmod('4', '3.5')` now returns '0.5' instead of '1'.
+
- PCRE:
. preg_match() and other PCRE functions now distinguish between unmatched
subpatterns and empty matches by reporting NULL and "" (empty string),