xref: /PHP-8.2/ext/bcmath/tests/bcmod_error2.phpt (revision 56f90492)
1--TEST--
2bcmod() - mod by 0
3--EXTENSIONS--
4bcmath
5--INI--
6bcmath.scale=0
7--FILE--
8<?php
9try {
10    bcmod("10", "0");
11} catch (DivisionByZeroError $ex) {
12    echo $ex->getMessage(), PHP_EOL;
13}
14?>
15--EXPECT--
16Modulo by zero
17