php-src/ext/bcmath/tests/bcceil_error.phpt
Saki Takamachi 5359392717
[RFC] Add bcfloor, bcceil and bcround to BCMath (#13096)
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>
2024-04-30 18:32:33 +01:00

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