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
Verifier support for CheckROCOW
[hiphop-php.git]
/
hphp
/
test
/
quick
/
div-zero.php
blob
8d9ded7dad813f86b1f2876b6e6961957fc9fcb2
1
<
?hh
2
3
4
function
main
(
$num
,
$zero
) {
5
try
{
6
$z
=
$num
/
0
;
7
}
catch
(
DivisionByZeroException
$e
) {
8
echo
$e
->
getMessage
(),
"
\n
"
;
9
}
10
try
{
11
$zz
=
$num
/
$zero
;
12
}
catch
(
DivisionByZeroException
$e
) {
13
echo
$e
->
getMessage
(),
"
\n
"
;
14
}
15
}
16
<<
__EntryPoint
>>
function
main_entry
():
void
{
17
main
(
123
,
0
);
18
}