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