summaryrefslogtreecommitdiff
path: root/ext/bcmath/tests/bug46781.phpt
blob: 15e04e555a1c50af9b8da5f84cc98a0fa28f7d91 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
--TEST--
Bug #46781 (BC math handles minus zero incorrectly)
--EXTENSIONS--
bcmath
--FILE--
<?php
var_dump(bcadd('-0.0', '-0.0', 1));
var_dump(bccomp('-0.0', '0', 1));
?>
--EXPECT--
string(3) "0.0"
int(0)