xref: /PHP-8.1/ext/bcmath/tests/bcpow_error2.phpt (revision 56f90492)
1--TEST--
2bcpow() does not support exponents >= 2**63
3--EXTENSIONS--
4bcmath
5--FILE--
6<?php
7try {
8    var_dump(bcpow('0', '9223372036854775808', 2));
9} catch (\ValueError $e) {
10    echo $e->getMessage() . \PHP_EOL;
11}
12?>
13--EXPECT--
14bcpow(): Argument #2 ($exponent) is too large
15