]> granicus.if.org Git - php/commit
Fixed bug #44995 (bcpowmod() fails if scale != 0)
authorChristoph M. Becker <cmbecker69@gmx.de>
Wed, 6 Sep 2017 21:30:53 +0000 (23:30 +0200)
committerChristoph M. Becker <cmbecker69@gmx.de>
Wed, 6 Sep 2017 21:30:53 +0000 (23:30 +0200)
commitdea41f3c3a003a22893b27eead429f963d3230c3
treeab38286a052c0620eafc1f9f858ec103bace515e
parent42549b7844472a896dbd51b8305a835e731ecb25
Fixed bug #44995 (bcpowmod() fails if scale != 0)

`bc_divmod()` is supposed to do integer division, so we must not apply
a scale factor here.
NEWS
ext/bcmath/libbcmath/src/divmod.c
ext/bcmath/tests/bug44995.phpt [new file with mode: 0644]