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
/
func_family_013.php
blob
2dac19595c0d88f610f007565ae642ad50db0363
1
<
?php
2
3
abstract class
Base
{
4
public function
foo
(&
$x
) {
5
$this
->
implFoo
(
$x
);
6
}
7
8
public function
implFoo
(&
$x
=
null
,
$y
=
false
) {}
9
}
10
11
abstract class
Derived
extends
Base
{
12
}
13
14
class
D2
extends
Derived
{
15
public function
implFoo
() {
16
echo
"hi
\n
"
;
17
}
18
}
19
20
function
main
() {
21
$x
=
new
D2
;
22
$y
=
'ok'
;
23
$x
->
foo
(
$y
);
24
}
25
26
main
();