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
/
lsb_static.php
blob
bff75197c0aa3dec16dde9ef4c770a02b0665cf4
1
<
?hh
2
3
class
A
{
4
<<
__LSB
>>
private static
string
$x
=
null
;
5
6
static function
foo
(
$v
) {
7
if
(
static
::
$x
===
null
)
static
::
$x
=
$v
;
8
var_dump
(
static
::
$x
);
9
}
10
}
11
12
class
B
extends
A
{
13
static function
bar
() {
14
var_dump
(
static
::
$x
);
15
}
16
}
17
18
class
C
extends
B
{
19
}
20
21
A
::
foo
(
"A"
);
22
B
::
foo
(
"B"
);
23
C
::
foo
(
"C"
);
24
25
A
::
foo
(
""
);
26
B
::
foo
(
""
);
27
C
::
foo
(
""
);
28
29
B
::
bar
();