summaryrefslogtreecommitdiff
path: root/Zend/tests/bug76860.phpt
blob: defe6153ba694a490a1db25d215bd3b4571c8503 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
--TEST--
Bug #76860 (Missed "Accessing static property as non static" warning)
--FILE--
<?php
class A {
    private   static $a = "a";
    protected static $b = "b";
    public    static $c = "c";
    public function __construct() {
    var_dump($this->a, $this->b, $this->c);
    }
}
class B extends A {
}
new B;
?>
--EXPECTF--
Notice: Accessing static property B::$a as non static in %sbug76860.php on line 7

Warning: Undefined property: B::$a in %s on line %d

Notice: Accessing static property B::$b as non static in %sbug76860.php on line 7

Warning: Undefined property: B::$b in %s on line %d

Notice: Accessing static property B::$c as non static in %sbug76860.php on line 7

Warning: Undefined property: B::$c in %s on line %d
NULL
NULL
NULL