bug69427.phpt 390 B

123456789101112131415161718192021222324252627
  1. --TEST--
  2. Bug #69427 (Segfault on magic method __call of private method in superclass)
  3. --FILE--
  4. <?php
  5. class SubClass extends BaseClass
  6. {
  7. }
  8. abstract class BaseClass
  9. {
  10. public function __call($name, $arguments)
  11. {
  12. return $this->$name();
  13. }
  14. private function foobar()
  15. {
  16. return 'okey';
  17. }
  18. }
  19. $test = new SubClass();
  20. echo $test->foobar();
  21. ?>
  22. --EXPECT--
  23. okey