xref: /PHP-8.0/ext/bcmath/tests/bug60377.phpt (revision 7aacc705)
1--TEST--
2bcscale related problem on 64bits platforms
3--SKIPIF--
4<?php if(!extension_loaded("bcmath")) die("skip");
5if (PHP_INT_SIZE != 8) die("skip: 64-bit only"); ?>
6--FILE--
7<?php
8try {
9    $var48 = bcscale(634314234334311);
10} catch (\ValueError $e) {
11    echo $e->getMessage() . \PHP_EOL;
12}
13$var67 = bcsqrt(0);
14$var414 = bcadd(0,-1,10);
15?>
16--EXPECT--
17bcscale(): Argument #1 ($scale) must be between 0 and 2147483647
18