Download src/php/php-src/ext/pcntl/tests/pcntl_exec.phpt from meddyrat/dis-bench: direct link, hf CLI and curl.
- Browser
- Download file 299 Bytes
-
https://huggingface.co/datasets/meddyrat/dis-bench/resolve/main/src/php/php-src/ext/pcntl/tests/pcntl_exec.phpt
- Command line
-
hf download hf://datasets/meddyrat/dis-bench/src/php/php-src/ext/pcntl/tests/pcntl_exec.phpt
-
curl -L -o pcntl_exec.phpt https://huggingface.co/datasets/meddyrat/dis-bench/resolve/main/src/php/php-src/ext/pcntl/tests/pcntl_exec.phpt
299 Bytes
| --TEST-- | |
| pcntl_exec() | |
| --EXTENSIONS-- | |
| pcntl | |
| --SKIPIF-- | |
| if (!getenv("TEST_PHP_EXECUTABLE") || !is_executable(getenv("TEST_PHP_EXECUTABLE"))) die("skip TEST_PHP_EXECUTABLE not set"); | |
| --FILE-- | |
| echo "ok\n"; | |
| pcntl_exec(getenv("TEST_PHP_EXECUTABLE"), ['-n']); | |
| echo "nok\n"; | |
| --EXPECT-- | |
| ok | |