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
/
sp.php
blob
ca75ab412e6c335a66bd878bea16853df7b86c5f
1
<
?hh
2
class
A
{
3
public static
$goo
=
'foo'
;
4
}
5
6
function
p
() {
7
print
A
::
$goo
.
"
\n
"
;
8
}
9
10
function
a
() {
11
$a
=
A
::
$goo
;
12
A
::
$goo
=
'aoo'
;
13
print
$a
.
"
\n
"
;
14
}
15
16
function
b
() {
17
$zoo
=
'A'
;
18
$b
=
$zoo
::
$goo
;
19
$zoo
::
$goo
=
'boo'
;
20
print
$b
.
"
\n
"
;
21
}
22
23
if
(
1
) {
24
include
'sp.inc'
;
25
}
26
$a
=
B
::
$goo
;
27
print
$a
.
"
\n
"
;
28
B
::
$goo
=
11
;
29
$a
=
B
::
$goo
;
30
print
$a
.
"
\n
"
;
31
p
();
32
a
();
33
p
();
34
b
();
35
p
();
36
print
"round 2
\n
"
;
37
a
();
38
p
();
39
A
::
$goo
=
'foo'
;
40
b
();
41
p
();
42
A
::
$goo
=
'foo'
;
43
p
();
44
A
::
$goo
=
'foo'
;
45
p
();