bug76860.phpt 751 B

12345678910111213141516171819202122232425262728293031
  1. --TEST--
  2. Bug #76860 (Missed "Accessing static property as non static" warning)
  3. --FILE--
  4. <?php
  5. class A {
  6. private static $a = "a";
  7. protected static $b = "b";
  8. public static $c = "c";
  9. public function __construct() {
  10. var_dump($this->a, $this->b, $this->c);
  11. }
  12. }
  13. class B extends A {
  14. }
  15. new B;
  16. ?>
  17. --EXPECTF--
  18. Notice: Accessing static property B::$a as non static in %sbug76860.php on line 7
  19. Warning: Undefined property: B::$a in %s on line %d
  20. Notice: Accessing static property B::$b as non static in %sbug76860.php on line 7
  21. Warning: Undefined property: B::$b in %s on line %d
  22. Notice: Accessing static property B::$c as non static in %sbug76860.php on line 7
  23. Warning: Undefined property: B::$c in %s on line %d
  24. NULL
  25. NULL
  26. NULL