mirror of
https://github.com/php/php-src.git
synced 2025-08-15 13:38:49 +02:00

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.
16 lines
282 B
PHP
16 lines
282 B
PHP
--TEST--
|
|
bc_raisemod's mod can't be zero
|
|
--CREDITS--
|
|
Gabriel Caruso (carusogabriel34@gmail.com)
|
|
--EXTENSIONS--
|
|
bcmath
|
|
--FILE--
|
|
<?php
|
|
try {
|
|
var_dump(bcpowmod('1', '1', '0'));
|
|
} catch (DivisionByZeroError $ex) {
|
|
echo $ex->getMessage(), PHP_EOL;
|
|
}
|
|
?>
|
|
--EXPECT--
|
|
Modulo by zero
|