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 issue with calling a unique, non-persistent method
[hiphop-php.git]
/
hphp
/
test
/
slow
/
hhbbc
/
static_props_013.php
blob
e1c25263dce491487020fceeaa68d737643470af
1
<
?hh
2
3
class
A
{
4
private static
$x
=
null
;
5
private static
$y
=
"string"
;
6
7
public static function
heh
(
int
$i
) {
8
self
::
$x
[
$i
] =
$i
;
9
}
10
public static function
getY
() {
return
self
::
$y
; }
11
public static function
getX
() {
return
self
::
$x
; }
12
}
13
14
function
main
() {
15
$a
=
new
A
;
16
var_dump
(
$a
->
heh
(
0
));
17
var_dump
(
$a
->
getY
());
18
var_dump
(
$a
->
getX
());
19
}
20
main
();