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-bases.php
blob
c2f89bdba354c5f70ff6808ec3467d687d2b5cd4
1
<
?hh
2
3
4
function
id
(
$x
) {
return
$x
; }
5
6
class
c
{}
7
8
function
main
() {
9
$name
=
'varname'
;
10
11
$x
=
$undef
[
'foo'
];
12
13
$x
=
$GLOBALS
[
$name
][
'foo'
];
14
$x
=
$GLOBALS
[
id
(
$name
)][
'foo'
];
15
}
16
main
();