xref: /PHP-7.4/Zend/tests/bug76860.phpt (revision 5c39b2c3)
1--TEST--
2Bug #76860 (Missed "Accessing static property as non static" warning)
3--FILE--
4<?php
5class 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}
13class B extends A {
14}
15new B;
16?>
17--EXPECTF--
18Notice: Accessing static property B::$a as non static in %sbug76860.php on line 7
19
20Notice: Undefined property: B::$a in %sbug76860.php on line 7
21
22Notice: Accessing static property B::$b as non static in %sbug76860.php on line 7
23
24Notice: Undefined property: B::$b in %sbug76860.php on line 7
25
26Notice: Accessing static property B::$c as non static in %sbug76860.php on line 7
27
28Notice: Undefined property: B::$c in %sbug76860.php on line 7
29NULL
30NULL
31NULL
32