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
global statement removal: hphp/test [7/x]
[hiphop-php.git]
/
hphp
/
test
/
quick
/
exception_bug_1351681.php
blob
e88501c946be5aeec58c8cb5f29aace09f41a8c8
1
<
?hh
2
function
doThrow
() {
throw new
Exception
(
"blah!"
); }
3
function
foo
() {
4
foreach
(
array
(
1
,
2
,
3
)
as
$_
) {
5
doThrow
();
6
}
7
try
{
echo
"Hi
\n
"
; }
catch
(
Exception
$ex
) {
echo
"We should not reach here
\n
"
; }
8
}
9
10
try
{
11
foo
();
12
}
catch
(
Exception
$x
) {
13
echo
"it's ok
\n
"
;
14
}