Download src/php/php-src/ext/random/tests/01_functions/reflection.phpt from meddyrat/dis-bench: direct link, hf CLI and curl.
- Browser
- Download file 392 Bytes
-
https://huggingface.co/datasets/meddyrat/dis-bench/resolve/main/src/php/php-src/ext/random/tests/01_functions/reflection.phpt
- Command line
-
hf download hf://datasets/meddyrat/dis-bench/src/php/php-src/ext/random/tests/01_functions/reflection.phpt
-
curl -L -o reflection.phpt https://huggingface.co/datasets/meddyrat/dis-bench/resolve/main/src/php/php-src/ext/random/tests/01_functions/reflection.phpt
392 Bytes
| --TEST-- | |
| Bug #74708 Wrong reflection on random_bytes and random_int | |
| --FILE-- | |
| $rf = new ReflectionFunction('random_bytes'); | |
| var_dump($rf->getNumberOfParameters()); | |
| var_dump($rf->getNumberOfRequiredParameters()); | |
| $rf = new ReflectionFunction('random_int'); | |
| var_dump($rf->getNumberOfParameters()); | |
| var_dump($rf->getNumberOfRequiredParameters()); | |
| --EXPECT-- | |
| int(1) | |
| int(1) | |
| int(2) | |
| int(2) | |