24 lines
394 B
PHP
24 lines
394 B
PHP
--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
|