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
Disallow declarations outside of the global scope.
[hiphop-php.git]
/
hphp
/
test
/
slow
/
inout
/
tuple
/
tests
/
reffy-magic.php
blob
7b1f781f2863591afb315c77a89d1fed22f62023
1
<
?hh
2
3
function
bar
(
$a
) {
4
var_dump
(
$a
);
5
var_dump
(
$GLOBALS
[
'FOO'
]);
6
}
7
8
function
foo
(
inout
$x
) {
9
$x
=
20
;
10
bar
(
$x
);
11
}
12
13
function
main
() {
14
$x
=
10
;
15
$GLOBALS
[
'FOO'
] =&
$x
;
16
bar
(
$x
);
17
foo
(&
$x
);
18
bar
(
$x
);
19
}
20
21
main
();