We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent e508ea6 commit fcb31a4Copy full SHA for fcb31a4
1 file changed
ext/bcmath/tests/bcround_precision_bounds.phpt
@@ -24,9 +24,15 @@ try {
24
} catch (\ValueError $e) {
25
echo $e->getMessage() . \PHP_EOL;
26
}
27
+try {
28
+ (new BcMath\Number('1'))->round(2147483648); // INT_MAX + 1
29
+} catch (\ValueError $e) {
30
+ echo $e->getMessage() . \PHP_EOL;
31
+}
32
?>
33
--EXPECTF--
34
bcround(): Argument #2 ($precision) must be between %i and %i
35
36
37
BcMath\Number::round(): Argument #1 ($precision) must be between %i and %i
38
+BcMath\Number::round(): Argument #1 ($precision) must be between %i and %i
0 commit comments