Download src/php/php-src/tests/run-test/test010.phpt from meddyrat/dis-bench: direct link, hf CLI and curl.
- Browser
- Download file 350 Bytes
-
https://huggingface.co/datasets/meddyrat/dis-bench/resolve/main/src/php/php-src/tests/run-test/test010.phpt
- Command line
-
hf download hf://datasets/meddyrat/dis-bench/src/php/php-src/tests/run-test/test010.phpt
-
curl -L -o test010.phpt https://huggingface.co/datasets/meddyrat/dis-bench/resolve/main/src/php/php-src/tests/run-test/test010.phpt
350 Bytes
| --TEST-- | |
| STDIN input | |
| --FILE-- | |
| <?php | |
| var_dump(stream_get_contents(STDIN)); | |
| var_dump(stream_get_contents(fopen('php://stdin', 'r'))); | |
| var_dump(file_get_contents('php://stdin')); | |
| ?> | |
| --STDIN-- | |
| fooBar | |
| use this to input some thing to the php script | |
| --EXPECTF-- | |
| string(5%d) "fooBar | |
| use this to input some thing to the php script | |
| " | |
| string(0) "" | |
| string(0) "" | |