Download src/php/php-src/ext/bcmath/tests/bcround_error.phpt from meddyrat/dis-bench: direct link, hf CLI and curl.
- Browser
- Download file 363 Bytes
-
https://huggingface.co/datasets/meddyrat/dis-bench/resolve/main/src/php/php-src/ext/bcmath/tests/bcround_error.phpt
- Command line
-
hf download hf://datasets/meddyrat/dis-bench/src/php/php-src/ext/bcmath/tests/bcround_error.phpt
-
curl -L -o bcround_error.phpt https://huggingface.co/datasets/meddyrat/dis-bench/resolve/main/src/php/php-src/ext/bcmath/tests/bcround_error.phpt
363 Bytes
| --TEST-- | |
| bcround() function with error | |
| --EXTENSIONS-- | |
| bcmath | |
| --FILE-- | |
| 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 | |