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
/
call13.php
blob
5994035e51467b1926a5584092abfb9da3aa9664
1
<
?hh
2
class
C
{
3
}
4
class
D
extends
C
{
5
public function
__call
(
$fn
,
$args
) {
6
echo
"D::__call
\n
"
;
7
}
8
}
9
class
E
extends
D
{
10
public function
__call
(
$fn
,
$args
) {
11
echo
"E::__call
\n
"
;
12
}
13
public function
test
() {
14
$this
->
foo
();
15
D
::
foo
();
16
E
::
foo
();
17
}
18
}
19
class
F
extends
D
{
20
public function
__call
(
$fn
,
$args
) {
21
echo
"F::__call
\n
"
;
22
}
23
}
24
25
function
main
() {
26
$obj
=
new
E
;
27
$obj
->
test
();
28
29
$obj
->
foo
();
30
E
::
foo
();
31
}
32
33
main
();
34