Download src/php/php-src/ext/gmp/tests/bug69803.phpt from meddyrat/dis-bench: direct link, hf CLI and curl.
- Browser
- Download file 388 Bytes
-
https://huggingface.co/datasets/meddyrat/dis-bench/resolve/main/src/php/php-src/ext/gmp/tests/bug69803.phpt
- Command line
-
hf download hf://datasets/meddyrat/dis-bench/src/php/php-src/ext/gmp/tests/bug69803.phpt
-
curl -L -o bug69803.phpt https://huggingface.co/datasets/meddyrat/dis-bench/resolve/main/src/php/php-src/ext/gmp/tests/bug69803.phpt
388 Bytes
| --TEST-- | |
| Bug #69803: gmp_random_range() modifies second parameter if GMP number | |
| --EXTENSIONS-- | |
| gmp | |
| --FILE-- | |
| $a = gmp_init(100); | |
| $b = gmp_init(200); | |
| echo $a . ", ", $b . "\n"; | |
| gmp_random_range($a, $b); | |
| echo $a . ", ", $b . "\n"; | |
| $b = gmp_init(200); | |
| echo $a . ", ", $b . "\n"; | |
| gmp_random_range(100, $b); | |
| echo $a . ", ", $b . "\n"; | |
| --EXPECT-- | |
| 100, 200 | |
| 100, 200 | |
| 100, 200 | |
| 100, 200 | |