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
convert ***sort builtins to use inout instead of references
[hiphop-php.git]
/
hphp
/
test
/
quick
/
stack_overflow.php
blob
f14e134a5e344ef1e984b424a1839bb974316c3d
1
<
?hh
2
3
abstract final class
StackOverflow
{
public static
$g
; }
4
5
StackOverflow
::
$g
=
array
(
1
,
2
,
3
);
6
function
cmp
(
$a
,
$b
) {
7
$g
=
StackOverflow
::
$g
;
8
usort
(
inout
$g
,
fun
(
'cmp'
));
9
StackOverflow
::
$g
=
$g
;
10
fiz
();
11
}
12
13
cmp
(
0
,
0
);
14
15
function
fiz
() {
16
var_dump
(
1
);
17
}