bug62358.phpt 406 B

1234567891011121314151617181920212223242526
  1. --TEST--
  2. Bug #62358 (Segfault when using traits a lot)
  3. --FILE--
  4. <?php
  5. trait T {
  6. public function foo() {
  7. echo "from T";
  8. }
  9. }
  10. interface I {
  11. public function foo();
  12. }
  13. abstract class A implements I{
  14. use T;
  15. }
  16. class B extends A {
  17. public function foo($var) {
  18. }
  19. }
  20. ?>
  21. --EXPECTF--
  22. Fatal error: Declaration of B::foo($var) must be compatible with A::foo() in %sbug62358.php on line 18