|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Request #71968 Access Modifier in Class Level
Submitted: 2016-04-05 13:42 UTC Modified: 2018-08-09 21:52 UTC
Avg. Score:2.7 ± 1.2
Reproduced:1 of 1 (100.0%)
Same Version:1 (100.0%)
Same OS:1 (100.0%)
From: dey dot sanjoy0 at gmail dot com Assigned:
Status: Suspended Package: *General Issues
PHP Version: 7.0.5 OS: Any
Private report: No CVE-ID: None
View Add Comment Developer Edit
Anyone can comment on a bug. Have a simpler test case? Does it work for you on a different platform? Let us know!
Just going to say 'Me too!'? Don't clutter the database with that please — but make sure to vote on the bug!
Your email address:
Solve the problem:
33 + 29 = ?
Subscribe to this entry?

 [2016-04-05 13:42 UTC] dey dot sanjoy0 at gmail dot com
From manual page:

As we see PHP has lot of cool features in recent version PHP 7. I would suggest to have a class level access modifier support. Most of the popular language like Java, C# has such feature. 

For example:

public class A
   public function hello()



Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2016-04-09 09:36 UTC]
-Status: Open +Status: Suspended
 [2016-04-09 09:36 UTC]
For this kind of change, an RFC is required.

Please see:
 [2018-08-09 21:52 UTC]
Related RFC draft: <>.
PHP Copyright © 2001-2021 The PHP Group
All rights reserved.
Last updated: Mon Dec 06 23:03:35 2021 UTC