bug63816.phpt 620 B

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  1. --TEST--
  2. Bug #63816: implementation child interface and after parent cause fatal error
  3. --FILE--
  4. <?php
  5. interface RootInterface
  6. {
  7. function foo();
  8. }
  9. interface FirstChildInterface extends RootInterface
  10. {
  11. function foo();
  12. }
  13. interface SecondChildInterface extends RootInterface
  14. {
  15. function foo();
  16. }
  17. class A implements FirstChildInterface, SecondChildInterface
  18. {
  19. function foo()
  20. {
  21. }
  22. }
  23. class B implements RootInterface, FirstChildInterface
  24. {
  25. function foo()
  26. {
  27. }
  28. }
  29. class C implements FirstChildInterface, RootInterface
  30. {
  31. function foo()
  32. {
  33. }
  34. }
  35. ?>
  36. ===DONE===
  37. --EXPECT--
  38. ===DONE===