xref: /PHP-7.3/ext/bcmath/tests/bcmod_error2.phpt (revision b746e698)
1--TEST--
2bcmod() - mod by 0
3--SKIPIF--
4<?php if(!extension_loaded("bcmath")) print "skip"; ?>
5--INI--
6bcmath.scale=0
7--FILE--
8<?php
9echo bcmod("10", "0");
10?>
11--EXPECTF--
12Warning: bcmod(): Division by zero in %s on line %d
13