Download src/php/php-src/ext/gmp/tests/bug66872.phpt from meddyrat/dis-bench: direct link, hf CLI and curl.
- Browser
- Download file 281 Bytes
-
https://huggingface.co/datasets/meddyrat/dis-bench/resolve/main/src/php/php-src/ext/gmp/tests/bug66872.phpt
- Command line
-
hf download hf://datasets/meddyrat/dis-bench/src/php/php-src/ext/gmp/tests/bug66872.phpt
-
curl -L -o bug66872.phpt https://huggingface.co/datasets/meddyrat/dis-bench/resolve/main/src/php/php-src/ext/gmp/tests/bug66872.phpt
281 Bytes
| --TEST-- | |
| Bug #66872: Crash when passing string to gmp_testbit | |
| --EXTENSIONS-- | |
| gmp | |
| --FILE-- | |
| try { | |
| var_dump(gmp_testbit("abc", 1)); | |
| } catch (\ValueError $e) { | |
| echo $e->getMessage() . \PHP_EOL; | |
| } | |
| --EXPECT-- | |
| gmp_testbit(): Argument #1 ($num) is not an integer string | |