Download src/php/php-src/ext/bcmath/tests/bcpowmod_negative_exponent.phpt from meddyrat/dis-bench: direct link, hf CLI and curl.
- Browser
- Download file 336 Bytes
-
https://huggingface.co/datasets/meddyrat/dis-bench/resolve/main/src/php/php-src/ext/bcmath/tests/bcpowmod_negative_exponent.phpt
- Command line
-
hf download hf://datasets/meddyrat/dis-bench/src/php/php-src/ext/bcmath/tests/bcpowmod_negative_exponent.phpt
-
curl -L -o bcpowmod_negative_exponent.phpt https://huggingface.co/datasets/meddyrat/dis-bench/resolve/main/src/php/php-src/ext/bcmath/tests/bcpowmod_negative_exponent.phpt
336 Bytes
| --TEST-- | |
| bc_raisemod's expo can't be negative | |
| --CREDITS-- | |
| Gabriel Caruso (carusogabriel34@gmail.com) | |
| --EXTENSIONS-- | |
| bcmath | |
| --FILE-- | |
| try { | |
| var_dump(bcpowmod('1', '-1', '2')); | |
| } catch (\ValueError $e) { | |
| echo $e->getMessage() . \PHP_EOL; | |
| } | |
| --EXPECT-- | |
| bcpowmod(): Argument #2 ($exponent) must be greater than or equal to 0 | |