From: Operating system: Windows7 PHP version: Irrelevant Package: Class/Object related Bug Type: Feature/Change Request Bug description:'friend' support would be great
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. -- Edit bug report at http://bugs.php.net/bug.php?id=53853&edit=1 -- Try a snapshot (PHP 5.2): http://bugs.php.net/fix.php?id=53853&r=trysnapshot52 Try a snapshot (PHP 5.3): http://bugs.php.net/fix.php?id=53853&r=trysnapshot53 Try a snapshot (trunk): http://bugs.php.net/fix.php?id=53853&r=trysnapshottrunk Fixed in SVN: http://bugs.php.net/fix.php?id=53853&r=fixed Fixed in SVN and need be documented: http://bugs.php.net/fix.php?id=53853&r=needdocs Fixed in release: http://bugs.php.net/fix.php?id=53853&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=53853&r=needtrace Need Reproduce Script: http://bugs.php.net/fix.php?id=53853&r=needscript Try newer version: http://bugs.php.net/fix.php?id=53853&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=53853&r=support Expected behavior: http://bugs.php.net/fix.php?id=53853&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=53853&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=53853&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=53853&r=globals PHP 4 support discontinued: http://bugs.php.net/fix.php?id=53853&r=php4 Daylight Savings: http://bugs.php.net/fix.php?id=53853&r=dst IIS Stability: http://bugs.php.net/fix.php?id=53853&r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=53853&r=gnused Floating point limitations: http://bugs.php.net/fix.php?id=53853&r=float No Zend Extensions: http://bugs.php.net/fix.php?id=53853&r=nozend MySQL Configuration Error: http://bugs.php.net/fix.php?id=53853&r=mysqlcfg