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
/
undefined-vgetg.php
blob
f19bdd32cdda0fbfe3c0d5ef59c1ce41ed18926f
1
<
?hh
2
3
// disable array -> "Array" conversion notice
4
error_reporting
(
error_reporting
() &
~E_NOTICE
);
5
6
function
foo
() {
7
global
$foo
;
8
return
$foo
;
9
}
10
foo
();
11
$x
=
array_keys
(
$GLOBALS
);
12
sort
(&
$x
);
13
foreach
(
$x
as
$k
) {
14
echo
"
$k
=>"
.
$GLOBALS
[
$k
] .
"
\n
"
;
15
}