12345678910111213141516 |
- --TEST--
- Bug #60978 (exit code incorrect)
- --SKIPIF--
- <?php
- if ("cli" != php_sapi_name()) {
- echo "skip CLI only";
- }
- ?>
- --FILE--
- <?php
- $php = getenv('TEST_PHP_EXECUTABLE');
- exec($php . ' -n -r "exit(2);"', $output, $exit_code);
- echo $exit_code;
- ?>
- --EXPECT--
- 2
|