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

Implementation for the "Adding bcround, bcfloor and bcceil to BCMath" RFC: https://wiki.php.net/rfc/adding_bcround_bcfloor_bcceil_to_bcmath * Separated round mode into separate header file Co-authored-by: Gina Peter Banyard <girgias@php.net>
21 lines
358 B
PHP
21 lines
358 B
PHP
--TEST--
|
|
bcceil() function with error
|
|
--EXTENSIONS--
|
|
bcmath
|
|
--FILE--
|
|
<?php
|
|
try {
|
|
bcceil('hoge');
|
|
} catch (Throwable $e) {
|
|
echo $e->getMessage()."\n";
|
|
}
|
|
|
|
try {
|
|
bcceil('0.00.1');
|
|
} catch (Throwable $e) {
|
|
echo $e->getMessage()."\n";
|
|
}
|
|
?>
|
|
--EXPECT--
|
|
bcceil(): Argument #1 ($num) is not well-formed
|
|
bcceil(): Argument #1 ($num) is not well-formed
|