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