You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

21 lines
425 B

  1. --TEST--
  2. Bug #37138 (__autoload tries to load callback'ed self and parent)
  3. --FILE--
  4. <?php
  5. function __autoload ($CN) {var_dump ($CN);}
  6. class st {
  7. public static function e () {echo ("EHLO\n");}
  8. public static function e2 () {call_user_func (array ('self', 'e'));}
  9. }
  10. class stch extends st {
  11. public static function g () {call_user_func (array ('parent', 'e'));}
  12. }
  13. st::e ();
  14. st::e2 ();
  15. stch::g ();
  16. ?>
  17. --EXPECT--
  18. EHLO
  19. EHLO
  20. EHLO