Download src/php/php-src/tests/basic/029.phpt from meddyrat/dis-bench: direct link, hf CLI and curl.
- Browser
- Download file 1 kB
-
https://huggingface.co/datasets/meddyrat/dis-bench/resolve/main/src/php/php-src/tests/basic/029.phpt
- Command line
-
hf download hf://datasets/meddyrat/dis-bench/src/php/php-src/tests/basic/029.phpt
-
curl -L -o 029.phpt https://huggingface.co/datasets/meddyrat/dis-bench/resolve/main/src/php/php-src/tests/basic/029.phpt
1 kB
| --TEST-- | |
| Shift_JIS request | |
| --EXTENSIONS-- | |
| mbstring | |
| --INI-- | |
| file_uploads=1 | |
| mbstring.encoding_translation=1 | |
| input_encoding=Shift_JIS | |
| internal_encoding=UTF-8 | |
| --POST_RAW-- | |
| Content-Type: multipart/form-data; boundary=---------------------------20896060251896012921717172737 | |
| -----------------------------20896060251896012921717172737 | |
| Content-Disposition: form-data; name="�\�\�\" | |
| �h���~�t�@�\ | |
| -----------------------------20896060251896012921717172737 | |
| Content-Disposition: form-data; name="pics"; filename="file1.txt" | |
| Content-Type: text/plain | |
| file1 | |
| -----------------------------20896060251896012921717172737-- | |
| --FILE-- | |
| <?php | |
| var_dump($_FILES); | |
| var_dump($_POST); | |
| ?> | |
| --EXPECTF-- | |
| array(1) { | |
| ["pics"]=> | |
| array(6) { | |
| ["name"]=> | |
| string(9) "file1.txt" | |
| ["full_path"]=> | |
| string(9) "file1.txt" | |
| ["type"]=> | |
| string(10) "text/plain" | |
| ["tmp_name"]=> | |
| string(%d) "%s" | |
| ["error"]=> | |
| int(0) | |
| ["size"]=> | |
| int(6) | |
| } | |
| } | |
| array(1) { | |
| ["予蚕能"]=> | |
| string(18) "ドレミファソ" | |
| } | |