blob: eb8d0966a1ca2aa4efa6a74f2a5d4edbddddfc68 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
|
--TEST--
Try catch finally (re-throw exception in catch block)
--CREDITS--
adoy
--FILE--
<?php
function dummy($msg) {
var_dump($msg);
}
try {
try {
var_dump("try");
return;
} catch (Exception $e) {
dummy("catch");
throw $e;
} finally {
dummy("finally");
}
} catch (Exception $e) {
dummy("catch2");
} finally {
dummy("finally2");
}
var_dump("end");
?>
--EXPECTF--
string(3) "try"
string(7) "finally"
string(8) "finally2"
|