bug75607a.phpt 338 B

123456789101112131415161718192021222324252627282930313233343536
  1. --TEST--
  2. Bug #75607 (Comparison of initial static properties failing)
  3. --FILE--
  4. <?php
  5. trait T1
  6. {
  7. public static $prop1 = 1;
  8. }
  9. trait T2
  10. {
  11. public static $prop1 = 1;
  12. }
  13. class Base
  14. {
  15. use T1;
  16. }
  17. class Child extends base
  18. {
  19. }
  20. class Grand extends Child
  21. {
  22. use T2;
  23. }
  24. $c = new Grand();
  25. var_dump($c::$prop1);
  26. ?>
  27. --EXPECT--
  28. int(1)