com php-src: Added test for bug #76860 (Missed "Accessing static property as non static" warning). It's already fixed by previous commit.:
Zend/tests/bug76860.phpt

From: Date: Tue, 11 Sep 2018 09:10:14 +0000
Subject: com php-src: Added test for bug #76860 (Missed "Accessing static property as non static" warning). It's already fixed by previous commit.:
Zend/tests/bug76860.phpt
Groups: php.cvs 
Request: Send a blank email to php-cvs+get-103056@lists.php.net to get a copy of this message
Commit: 5c39b2c328d002e81dd4889ca67a70e55b485861 Author: Dmitry Stogov <dmitry@zend.com> Tue, 11 Sep 2018 12:10:14 +0300 Parents: 3a249e769b293afa454b18b8d894c3395683d26c Branches: master Link: http://git.php.net/?p=php-src.git;a=commitdiff;h=5c39b2c328d002e81dd4889ca67a70e55b485861 Log: Added test for bug #76860 (Missed "Accessing static property as non static" warning). It's already fixed by previous commit. Bugs: https://bugs.php.net/76860 Changed paths: A Zend/tests/bug76860.phpt Diff: diff --git a/Zend/tests/bug76860.phpt b/Zend/tests/bug76860.phpt new file mode 100644 index 0000000...046edba --- /dev/null +++ b/Zend/tests/bug76860.phpt @@ -0,0 +1,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 + +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

« previous php.cvs (#103056) next »