mirror of
https://github.com/php/php-src.git
synced 2024-12-13 20:05:26 +08:00
5c39b2c328
It's already fixed by previous commit.
32 lines
778 B
PHP
32 lines
778 B
PHP
--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
|
|
|
|
Notice: Undefined property: B::$a in %sbug76860.php on line 7
|
|
|
|
Notice: Accessing static property B::$b as non static in %sbug76860.php on line 7
|
|
|
|
Notice: Undefined property: B::$b in %sbug76860.php on line 7
|
|
|
|
Notice: Accessing static property B::$c as non static in %sbug76860.php on line 7
|
|
|
|
Notice: Undefined property: B::$c in %sbug76860.php on line 7
|
|
NULL
|
|
NULL
|
|
NULL
|