summaryrefslogtreecommitdiff
path: root/ext/bcmath/tests/bcpow_error1.phpt
blob: d2b1a10704e6d2c33424f52a2b3060b59a376336 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
--TEST--
bcpow() does not support non-integral exponents
--EXTENSIONS--
bcmath
--FILE--
<?php
try {
    var_dump(bcpow('1', '1.1', 2));
} catch (\ValueError $e) {
    echo $e->getMessage() . \PHP_EOL;
}
?>
--EXPECT--
bcpow(): Argument #2 ($exponent) cannot have a fractional part