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