bug62358.phpt 511 B

1234567891011121314151617181920212223242526272829303132
  1. --TEST--
  2. Bug #62358 (Segfault when using traits a lot)
  3. --SKIPIF--
  4. <?php
  5. if (getenv("USE_ZEND_ALLOC") !== "0") {
  6. die("skip Need Zend MM enabled");
  7. }
  8. ?>
  9. --FILE--
  10. <?php
  11. trait T {
  12. public function foo() {
  13. echo "from T";
  14. }
  15. }
  16. interface I {
  17. public function foo();
  18. }
  19. abstract class A implements I{
  20. use T;
  21. }
  22. class B extends A {
  23. public function foo($var) {
  24. }
  25. }
  26. ?>
  27. --EXPECTF--
  28. Strict Standards: Declaration of B::foo() should be compatible with A::foo() in %sbug62358.php on line %d