Download src/php/php-src/ext/pcntl/tests/pcntl_rfork.phpt from meddyrat/dis-bench: direct link, hf CLI and curl.
- Browser
- Download file 338 Bytes
-
https://huggingface.co/datasets/meddyrat/dis-bench/resolve/main/src/php/php-src/ext/pcntl/tests/pcntl_rfork.phpt
- Command line
-
hf download hf://datasets/meddyrat/dis-bench/src/php/php-src/ext/pcntl/tests/pcntl_rfork.phpt
-
curl -L -o pcntl_rfork.phpt https://huggingface.co/datasets/meddyrat/dis-bench/resolve/main/src/php/php-src/ext/pcntl/tests/pcntl_rfork.phpt
338 Bytes
| --TEST-- | |
| Test function pcntl_rfork() with no flag. | |
| --EXTENSIONS-- | |
| pcntl | |
| posix | |
| --SKIPIF-- | |
| if (!function_exists('pcntl_rfork')) die('skip pcntl_rfork unavailable'); | |
| --FILE-- | |
| echo "*** Test with no flags ***\n"; | |
| $pid = pcntl_rfork(0); | |
| if ($pid == 0) { | |
| echo "child"; | |
| exit; | |
| } | |
| --EXPECT-- | |
| *** Test with no flags *** | |
| child | |