bug46781.phpt 205 B

123456789101112
  1. --TEST--
  2. Bug #46781 (BC math handles minus zero incorrectly)
  3. --EXTENSIONS--
  4. bcmath
  5. --FILE--
  6. <?php
  7. var_dump(bcadd('-0.0', '-0.0', 1));
  8. var_dump(bccomp('-0.0', '0', 1));
  9. ?>
  10. --EXPECT--
  11. string(3) "0.0"
  12. int(0)