diff options
author | Libor M <liborm85@gmail.com> | 2015-10-17 08:09:16 +0200 |
---|---|---|
committer | Nikita Popov <nikic@php.net> | 2017-01-07 19:10:31 +0100 |
commit | 90dcbbe3cb9aed197cbb854afe2eed0f6479a95a (patch) | |
tree | 8f942c436ab040f1bb3d4893c88aa5d3ef68aa6e /UPGRADING | |
parent | 00062d2ea8a433582d96e37772fa8928c8454938 (diff) | |
download | php-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-- | UPGRADING | 5 |
1 files changed, 5 insertions, 0 deletions
@@ -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), |