From: Dmitry Stogov Date: Tue, 11 Sep 2018 09:10:14 +0000 (+0300) Subject: Added test for bug #76860 (Missed "Accessing static property as non static" warning). X-Git-Tag: php-7.4.0alpha1~1961 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=5c39b2c328d002e81dd4889ca67a70e55b485861;p=php Added test for bug #76860 (Missed "Accessing static property as non static" warning). It's already fixed by previous commit. --- diff --git a/Zend/tests/bug76860.phpt b/Zend/tests/bug76860.phpt new file mode 100644 index 0000000000..046edba7f2 --- /dev/null +++ b/Zend/tests/bug76860.phpt @@ -0,0 +1,31 @@ +--TEST-- +Bug #76860 (Missed "Accessing static property as non static" warning) +--FILE-- +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