dis-bench / src /php /php-src /ext /bcmath /tests /bcround_error.phpt
meddyrat's picture
Replace repository contents with the original corrected artifact
1e94262
Raw History Blame Contribute Delete
363 Bytes
--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