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
/
div_fpe.php
blob
82036a30dfa256c8dd5b1c50efd5e36e0654d34e
1
<
?hh
2
3
function
main
() {
4
$x
= -
1
;
5
$y
= -
9223372036854775807
;
6
--
$y
;
7
var_dump
(
$y
/
$x
);
// minimum int divided by -1, shouldn't sigfpe
8
9
$x
= -
1
;
10
$y
= -
9223372036854775807
;
11
--
$y
;
12
var_dump
(
$y
%
$x
);
// minimum int mod -1, shouldn't sigfpe
13
}
14
15
main
();