php-src/ext/bcmath/tests/bcfloor_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

22 lines
363 B
PHP

--TEST--
bcfloor() function with error
--EXTENSIONS--
bcmath
--FILE--
<?php
try {
bcfloor('hoge');
} catch (Throwable $e) {
echo $e->getMessage()."\n";
}
try {
bcfloor('0.00.1');
} catch (Throwable $e) {
echo $e->getMessage()."\n";
}
?>
--EXPECT--
bcfloor(): Argument #1 ($num) is not well-formed
bcfloor(): Argument #1 ($num) is not well-formed