Fix issue with calling a unique, non-persistent method
[hiphop-php.git] / hphp / test / slow / hhbbc / func_family_013.php
blob2dac19595c0d88f610f007565ae642ad50db0363
1 <?php
3 abstract class Base {
4 public function foo(&$x) {
5 $this->implFoo($x);
8 public function implFoo(&$x = null, $y = false) {}
11 abstract class Derived extends Base {
14 class D2 extends Derived {
15 public function implFoo() {
16 echo "hi\n";
20 function main() {
21 $x = new D2;
22 $y = 'ok';
23 $x->foo($y);
26 main();