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
Turn FFP errors upto 11; report everything
[hiphop-php.git]
/
hphp
/
test
/
quick
/
fsc02.php
blob
5ecf8f11b544ebdaec5cda84aa75f0c316c97da4
1
<
?hh
2
class
B
{
3
public function
f1
() {
4
var_dump
(
get_called_class
());
5
if
(
$this
!==
null
) {
6
var_dump
(
get_class
(
$this
));
7
}
else
{
8
var_dump
(
null
);
9
}
10
echo
"
\n
"
;
11
}
12
}
13
class
C
extends
B
{
14
public function
g
() {
15
$obj
=
new
B
();
16
forward_static_call
(
array
(
'B'
,
'f1'
));
17
call_user_func
(
array
(
'B'
,
'f1'
));
18
}
19
}
20
$obj
=
new
C
();
21
$obj
->
g
();