exit_finally_1.phpt 265 B

12345678910111213141516171819
  1. --TEST--
  2. exit() and finally (1)
  3. --FILE--
  4. <?php
  5. // TODO: In the future, we should execute the finally block.
  6. try {
  7. exit("Exit\n");
  8. } catch (Throwable $e) {
  9. echo "Not caught\n";
  10. } finally {
  11. echo "Finally\n";
  12. }
  13. echo "Not executed\n";
  14. ?>
  15. --EXPECT--
  16. Exit