bcmod_error2.phpt 220 B

12345678910111213141516
  1. --TEST--
  2. bcmod() - mod by 0
  3. --EXTENSIONS--
  4. bcmath
  5. --INI--
  6. bcmath.scale=0
  7. --FILE--
  8. <?php
  9. try {
  10. bcmod("10", "0");
  11. } catch (DivisionByZeroError $ex) {
  12. echo $ex->getMessage(), PHP_EOL;
  13. }
  14. ?>
  15. --EXPECT--
  16. Modulo by zero