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