xref: /PHP-7.4/Zend/tests/bug76860_2.phpt (revision 06f056a7)
1--TEST--
2Bug #76860 (Missed "Accessing static property as non static" warning)
3--FILE--
4<?php
5class A {
6    private static $a = "a";
7    private static $b = "b";
8    private static $c = "c";
9    public function __construct() {
10	var_dump($this->a, $this->b, $this->c);
11    }
12}
13class B extends A {
14    private static $a = "a1";
15    protected static $b = "b1";
16    public static $c = "c1";
17}
18new B;
19?>
20--EXPECTF--
21Notice: Accessing static property B::$a as non static in %sbug76860_2.php on line 7
22
23Notice: Undefined property: B::$a in %sbug76860_2.php on line 7
24
25Notice: Accessing static property B::$b as non static in %sbug76860_2.php on line 7
26
27Notice: Undefined property: B::$b in %sbug76860_2.php on line 7
28
29Notice: Accessing static property B::$c as non static in %sbug76860_2.php on line 7
30
31Notice: Undefined property: B::$c in %sbug76860_2.php on line 7
32NULL
33NULL
34NULL
35