mirror of
https://github.com/php/php-src.git
synced 2024-09-21 18:07:23 +00: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.
17 lines
336 B
PHP
17 lines
336 B
PHP
--TEST--
|
|
bc_raisemod's expo can't be negative
|
|
--CREDITS--
|
|
Gabriel Caruso (carusogabriel34@gmail.com)
|
|
--EXTENSIONS--
|
|
bcmath
|
|
--FILE--
|
|
<?php
|
|
try {
|
|
var_dump(bcpowmod('1', '-1', '2'));
|
|
} catch (\ValueError $e) {
|
|
echo $e->getMessage() . \PHP_EOL;
|
|
}
|
|
?>
|
|
--EXPECT--
|
|
bcpowmod(): Argument #2 ($exponent) must be greater than or equal to 0
|