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
/
setter-magic2.php
blob
7492748435d7694ac82c360412617a52fb3cab11
1
<
?hh
2
3
abstract final class
SetterMagic2
{
4
public static
$heh
;
5
}
6
7
class
Heh
{
8
public function
__set
(
$k
,
$v
) {
9
var_dump
(
$k
,
$v
);
10
test
();
11
}
12
}
13
14
function
test
() {
15
SetterMagic2
::
$heh
->
prop
=
3
;
16
}
17
18
SetterMagic2
::
$heh
=
new
Heh
;
19
SetterMagic2
::
$heh
->
prop
=
2
;
20
var_dump
(
SetterMagic2
::
$heh
);