mirror of
https://github.com/php/php-src.git
synced 2024-09-21 18:07:23 +00:00
5359392717
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>
22 lines
363 B
PHP
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
|