Download src/php/php-src/ext/bcmath/tests/bcadd_error.phpt from meddyrat/dis-bench: direct link, hf CLI and curl.
- Browser
- Download file 381 Bytes
-
https://huggingface.co/datasets/meddyrat/dis-bench/resolve/main/src/php/php-src/ext/bcmath/tests/bcadd_error.phpt
- Command line
-
hf download hf://datasets/meddyrat/dis-bench/src/php/php-src/ext/bcmath/tests/bcadd_error.phpt
-
curl -L -o bcadd_error.phpt https://huggingface.co/datasets/meddyrat/dis-bench/resolve/main/src/php/php-src/ext/bcmath/tests/bcadd_error.phpt
381 Bytes
| --TEST-- | |
| bcadd() requires well-formed values | |
| --EXTENSIONS-- | |
| bcmath | |
| --FILE-- | |
| try { | |
| bcadd('a', '1'); | |
| } catch (\ValueError $e) { | |
| echo $e->getMessage() . PHP_EOL; | |
| } | |
| try { | |
| bcadd('1', 'a'); | |
| } catch (\ValueError $e) { | |
| echo $e->getMessage() . PHP_EOL; | |
| } | |
| --EXPECT-- | |
| bcadd(): Argument #1 ($num1) is not well-formed | |
| bcadd(): Argument #2 ($num2) is not well-formed | |