]> granicus.if.org Git - php/commit
Fixed bug #46781 (BC math handles minus zero incorrectly)
authorChristoph M. Becker <cmbecker69@gmx.de>
Mon, 11 Sep 2017 21:44:23 +0000 (23:44 +0200)
committerChristoph M. Becker <cmbecker69@gmx.de>
Mon, 11 Sep 2017 21:44:23 +0000 (23:44 +0200)
commit9aa6898b9be78bb1e138488c3204bb745a31aca7
treec972d828b1864fca92693827cd39ce7bf6ee284b
parentd103802003aaa808e07e52d957e346fe4fb75952
Fixed bug #46781 (BC math handles minus zero incorrectly)

Actually, there is no negative zero at all.  We obey Postel's law, and
still accept negative zeroes, but we store them as positive zeroes
after the conversion from string, i.e. we normalize before further
processing.
NEWS
ext/bcmath/libbcmath/src/str2num.c
ext/bcmath/tests/bug46781.phpt [new file with mode: 0644]