Download src/php/php-src/sapi/cli/tests/bug62294.phpt from meddyrat/dis-bench: direct link, hf CLI and curl.
- Browser
- Download file 284 Bytes
-
https://huggingface.co/datasets/meddyrat/dis-bench/resolve/main/src/php/php-src/sapi/cli/tests/bug62294.phpt
- Command line
-
hf download hf://datasets/meddyrat/dis-bench/src/php/php-src/sapi/cli/tests/bug62294.phpt
-
curl -L -o bug62294.phpt https://huggingface.co/datasets/meddyrat/dis-bench/resolve/main/src/php/php-src/sapi/cli/tests/bug62294.phpt
284 Bytes
| --TEST-- | |
| Bug #62294: register_shutdown_function() does not handle exit code correctly | |
| --FILE-- | |
| $php = getenv('TEST_PHP_EXECUTABLE_ESCAPED'); | |
| exec($php . ' -n ' . escapeshellarg(__DIR__ . '/bug62294.inc'), $output, $exit_status); | |
| var_dump($exit_status); | |
| --EXPECT-- | |
| int(255) | |