mirror of
https://github.com/php/php-src.git
synced 2025-08-16 05:58:45 +02:00

see https://wiki.php.net/rfc/correctly_name_the_rounding_mode_and_make_it_an_enum Co-authored-by: Saki Takamachi <saki@php.net> Co-authored-by: Niels Dossche <7771979+nielsdos@users.noreply.github.com>
21 lines
363 B
PHP
21 lines
363 B
PHP
--TEST--
|
|
bcround() function with error
|
|
--EXTENSIONS--
|
|
bcmath
|
|
--FILE--
|
|
<?php
|
|
try {
|
|
bcround('hoge');
|
|
} catch (Throwable $e) {
|
|
echo $e->getMessage()."\n";
|
|
}
|
|
|
|
try {
|
|
bcround('0.00.1');
|
|
} catch (Throwable $e) {
|
|
echo $e->getMessage()."\n";
|
|
}
|
|
?>
|
|
--EXPECT--
|
|
bcround(): Argument #1 ($num) is not well-formed
|
|
bcround(): Argument #1 ($num) is not well-formed
|