1.1 ! misho 1: --TEST-- ! 2: Bug #60978 (exit code incorrect) ! 3: --FILE-- ! 4: <?php ! 5: $php = getenv('TEST_PHP_EXECUTABLE'); ! 6: exec($php . ' -n -r "exit(2);"', $output, $exit_code); ! 7: echo $exit_code; ! 8: ?> ! 9: --EXPECT-- ! 10: 2