diff options
Diffstat (limited to 'ext/bcmath/tests/bcmod_error2.phpt')
-rw-r--r-- | ext/bcmath/tests/bcmod_error2.phpt | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/ext/bcmath/tests/bcmod_error2.phpt b/ext/bcmath/tests/bcmod_error2.phpt new file mode 100644 index 0000000000..bac49c8e92 --- /dev/null +++ b/ext/bcmath/tests/bcmod_error2.phpt @@ -0,0 +1,12 @@ +--TEST-- +bcmod() - mod by 0 +--SKIPIF-- +<?php if(!extension_loaded("bcmath")) print "skip"; ?> +--INI-- +bcmath.scale=0 +--FILE-- +<?php +echo bcmod("10", "0"); +?> +--EXPECTF-- +Warning: bcmod(): Division by zero in %s on line %d
\ No newline at end of file |