Download src/php/php-src/tests/basic/012.phpt from meddyrat/dis-bench: direct link, hf CLI and curl.
- Browser
- Download file 308 Bytes
-
https://huggingface.co/datasets/meddyrat/dis-bench/resolve/main/src/php/php-src/tests/basic/012.phpt
- Command line
-
hf download hf://datasets/meddyrat/dis-bench/src/php/php-src/tests/basic/012.phpt
-
curl -L -o 012.phpt https://huggingface.co/datasets/meddyrat/dis-bench/resolve/main/src/php/php-src/tests/basic/012.phpt
308 Bytes
| --TEST-- | |
| Testing $argc and $argv handling (cli) | |
| --INI-- | |
| register_argc_argv=1 | |
| variables_order=GPS | |
| --ARGS-- | |
| ab cd ef 123 test | |
| --FILE-- | |
| $argc = $_SERVER['argc']; | |
| $argv = $_SERVER['argv']; | |
| for ($i=1; $i<$argc; $i++) { | |
| echo ($i-1).": ".$argv[$i]."\n"; | |
| } | |
| --EXPECT-- | |
| 0: ab | |
| 1: cd | |
| 2: ef | |
| 3: 123 | |
| 4: test | |