|  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
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If this is not your bug, you can add a comment by following this link.
If this is your bug, but you forgot your password, you can retrieve your password here.
Bug Type:
From: dey dot sanjoy0 at gmail dot com
New email:
PHP Version: OS:


 [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: Fri Dec 03 13:03:38 2021 UTC