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