1234567891011121314151617181920212223 |
- --TEST--
- exit() and finally (2)
- --FILE--
- <?php
- // TODO: In the future, we should execute the finally block.
- try {
- try {
- exit("Exit\n");
- } catch (Throwable $e) {
- echo "Not caught\n";
- } finally {
- throw new Exception("Finally exception");
- }
- echo "Not executed\n";
- } catch (Exception $e) {
- echo "Caught {$e->getMessage()}\n";
- }
- ?>
- --EXPECT--
- Exit
|