Download src/php/php-src/sapi/cli/tests/002-unix.phpt from meddyrat/dis-bench: direct link, hf CLI and curl.
- Browser
- Download file 320 Bytes
-
https://huggingface.co/datasets/meddyrat/dis-bench/resolve/main/src/php/php-src/sapi/cli/tests/002-unix.phpt
- Command line
-
hf download hf://datasets/meddyrat/dis-bench/src/php/php-src/sapi/cli/tests/002-unix.phpt
-
curl -L -o 002-unix.phpt https://huggingface.co/datasets/meddyrat/dis-bench/resolve/main/src/php/php-src/sapi/cli/tests/002-unix.phpt
320 Bytes
| --TEST-- | |
| running code with -r | |
| --SKIPIF-- | |
| include "skipif.inc"; | |
| if (substr(PHP_OS, 0, 3) == 'WIN') { | |
| die ("skip not for Windows"); | |
| } | |
| --FILE-- | |
| $php = getenv('TEST_PHP_EXECUTABLE_ESCAPED'); | |
| var_dump(`$php -n -r 'var_dump("hello");'`); | |
| echo "Done\n"; | |
| --EXPECT-- | |
| string(18) "string(5) "hello" | |
| " | |
| Done | |