Bug #78960 [NEW]: Const Privacy on static:: doesn't match func privacy on static::
| From: | donatj at gmail dot com | Date: | Fri, 13 Dec 2019 20:29:34 +0000 |
| Subject: | Bug #78960 [NEW]: Const Privacy on static:: doesn't match func privacy on static:: | ||
| Groups: | php.standards | ||
| Request: | Send a blank email to standards-+get-1474@lists.php.net to get a copy of this message | ||
From: donatj at gmail dot com
Operating system: All
PHP version: 7.4.0
Package: PHP Language Specification
Bug Type: Bug
Bug description:Const Privacy on static:: doesn't match func privacy on static::
Description:
------------
Calls to private static methods and members from the same class via
static:: work in the same class extended by another class.
Calls to private constants from the same class via static:: do not work.
Test script:
---------------
https://3v4l.org/HiPuc
Expected result:
----------------
Expect uniform behaviour in one way or the other.
Actual result:
--------------
Private methods and members are accessible. Constants are not.
--
Edit bug report at https://bugs.php.net/bug.php?id=78960&edit=1
--
Fix committed: https://bugs.php.net/fix.php?id=78960&r=fixed
Fixed in release: https://bugs.php.net/fix.php?id=78960&r=alreadyfixed
Need backtrace: https://bugs.php.net/fix.php?id=78960&r=needtrace
Need Reproduce Script: https://bugs.php.net/fix.php?id=78960&r=needscript
Try newer version: https://bugs.php.net/fix.php?id=78960&r=oldversion
Not developer issue: https://bugs.php.net/fix.php?id=78960&r=support
Expected behavior: https://bugs.php.net/fix.php?id=78960&r=notwrong
Not enough info: https://bugs.php.net/fix.php?id=78960&r=notenoughinfo
Submitted twice: https://bugs.php.net/fix.php?id=78960&r=submittedtwice
register_globals: https://bugs.php.net/fix.php?id=78960&r=globals
PHP version support discontinued: https://bugs.php.net/fix.php?id=78960&r=phptooold
Daylight Savings: https://bugs.php.net/fix.php?id=78960&r=dst
IIS Stability: https://bugs.php.net/fix.php?id=78960&r=isapi
Install GNU Sed: https://bugs.php.net/fix.php?id=78960&r=gnused
Floating point limitations: https://bugs.php.net/fix.php?id=78960&r=float
No Zend Extensions: https://bugs.php.net/fix.php?id=78960&r=nozend
MySQL Configuration Error: https://bugs.php.net/fix.php?id=78960&r=mysqlcfg