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
Fix case sensitive mismatches in tests (6/N)
[hiphop-php.git]
/
hphp
/
test
/
slow
/
variable_class_name
/
1870.php
blob
92bce262eec43b17fdebf287cf4d15112798cc31
1
<
?hh
2
3
class
A
{
4
const
C
=
123
;
5
static public
$foo
=
456
;
6
<<
__DynamicallyCallable
>>
7
public static function
bar
() {
8
return
789
;
9
}
10
}
11
12
<<
__EntryPoint
>>
13
function
main_1870
() {
14
$cls
=
'A'
;
15
16
var_dump
(
$cls
::
C
);
17
// ClassConstant
18
19
var_dump
(
$cls
::
$foo
);
20
// StaticMember
21
$cls
::
$foo
=
'test'
;
22
var_dump
(
$cls
::
$foo
);
23
// l-value
24
25
var_dump
(
$cls
::
bar
());
26
// SimpleFunctionCall
27
28
$func
=
'bar'
;
29
var_dump
(
$cls
::
$func
());
30
}