bug20242.phpt 305 B

123456789101112131415161718192021
  1. --TEST--
  2. Bug #20242 (Method call in front of class definition)
  3. --FILE--
  4. <?php
  5. test::show_static();
  6. $t = new test;
  7. $t->show_method();
  8. class test {
  9. static function show_static() {
  10. echo "static\n";
  11. }
  12. function show_method() {
  13. echo "method\n";
  14. }
  15. }
  16. ?>
  17. --EXPECT--
  18. static
  19. method