mirror of
https://github.com/php/php-src.git
synced 2026-04-21 23:18:13 +02:00
56f90492d6
For rationale, see https://github.com/php/php-src/pull/6787 Extensions migrated in this part: * bcmath * bz2 * calendar * com_dotnet * ctype Closes GH-6797.
15 lines
280 B
PHP
15 lines
280 B
PHP
--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
|