repo.or.cz
/
hiphop-php.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
Basic flow analysis on if statements
[hiphop-php.git]
/
hphp
/
test
/
slow
/
finally
/
try_catch_finally_001.php
blob
a58ce3ee545332d9e920a020ee5cbc6e31abdad7
1
<
?hh
2
3
class
AE
extends
Exception
{}
4
class
BE
extends
Exception
{}
5
6
function
foo
() {
7
try
{
8
try
{
9
try
{
10
throw new
Exception
(
"try"
);
11
}
catch
(
AE
$e
) {
12
echo
"0"
;
13
die
(
"error"
);
14
}
finally
{
15
echo
"1"
;
16
}
17
}
finally
{
18
echo
"2"
;
19
}
20
}
catch
(
BE
$e
) {
21
die
(
"error"
);
22
}
catch
(
Exception
$e
) {
23
echo
"3"
;
24
}
finally
{
25
echo
"4"
;
26
}
27
return
1
;
28
}
29
<<
__EntryPoint
>>
function
main
():
void
{
30
var_dump
(
foo
());
31
}