php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Request #53853 'friend' support would be great
Submitted: 2011-01-27 12:55 UTC Modified: 2011-01-28 00:39 UTC
From: php at 5ubliminal dot com Assigned:
Status: Duplicate Package: Class/Object related
PHP Version: Irrelevant OS: Windows7
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.
Password:
Status:
Package:
Bug Type:
Summary:
From: php at 5ubliminal dot com
New email:
PHP Version: OS:

 

 [2011-01-27 12:55 UTC] php at 5ubliminal dot com
Description:
------------
I know you heard this ( http://bugs.php.net/bug.php?id=34044 ) but it was back in 2005. Things have changed and I was wondering if you reconsidered this.

There are moments when you need to restrict access to some private functions in OOP programming, especially when you distribute code to others. Developers should not be allowed to call those methods but just some select functions (methods) should.

That's where 'friend' would come in great help.

Thanks! Just food for thought. Would be soo coool in terms of maintaining code security and good structure.


Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2011-01-28 00:39 UTC] aharvey@php.net
-Status: Open +Status: Duplicate
 [2011-01-28 00:39 UTC] aharvey@php.net
I don't think anything has changed here.
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Thu Apr 25 17:01:29 2024 UTC