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
convert ***sort builtins to use inout instead of references
[hiphop-php.git]
/
hphp
/
test
/
slow
/
object
/
672.php
blob
796798724c0a0f7a60fd42872bd5a683b92f2d16
1
<
?hh
2
3
class
FOo
{
4
public function
exclAIM
() {
5
echo
"FOo::exclAIM
\n
"
;
6
}
7
public function
teST
() {
8
echo
"FOo::teST
\n
"
;
9
}
10
public function
__CaLL
(
$name
,
$args
) {
11
echo
"FOo::"
.
$name
.
"
\n
"
;
12
}
13
}
14
class
TesT
{
15
public static function
ExclAim
() {
16
$obj
=
new
fOO
();
17
$obj
->{
18
__fUNCTION__
}
19
=
1
;
20
$obj
->{
21
__cLASS__
}
22
=
2
;
23
$obj
->
__FuNCTION__
=
3
;
24
$obj
->
__ClASS__
=
4
;
25
$obj
->{
26
__FUnCTION__
}
27
();
28
$obj
->{
29
__CLaSS__
}
30
();
31
$obj
->
__FUNcTION__
();
32
$obj
->
__CLAsS__
();
33
$arr
=
array
();
34
foreach
(
$obj
as
$k
=>
$v
) {
35
$arr
[
$k
] =
$v
;
36
}
37
ksort
(
inout
$arr
);
38
var_dump
(
$arr
);
39
}
40
}
41
42
<<
__EntryPoint
>>
43
function
main_672
() {
44
tEst
::
eXclaiM
();
45
}