From: mr at segtel dot dk
Operating system: All
PHP version: 6CVS-2008-02-29 (CVS)
PHP Bug Type: Feature/Change Request
Bug description: Request for package access control system
Description:
------------
I would like to request a package access control system to accompany
public, private and protected as defined by OMG for UML.
Reproduce code:
---------------
package my_package {
class some_class {
package $var;
}
class other_class {
private $obj;
public function __construct() {
$this->obj = new some_class();
}
public function do_something() {
print $this->obj->var;
}
}
}
Expected result:
----------------
The above should work. my_package::some_class::var is accessible by other
classes inside the my_package package whereas any other class does not have
access.
--
Edit bug report at http://bugs.php.net/?id=44290&edit=1
--
Try a CVS snapshot (PHP 5.2):
http://bugs.php.net/fix.php?id=44290&r=trysnapshot52
Try a CVS snapshot (PHP 5.3):
http://bugs.php.net/fix.php?id=44290&r=trysnapshot53
Try a CVS snapshot (PHP 6.0):
http://bugs.php.net/fix.php?id=44290&r=trysnapshot60
Fixed in CVS: http://bugs.php.net/fix.php?id=44290&r=fixedcvs
Fixed in release:
http://bugs.php.net/fix.php?id=44290&r=alreadyfixed
Need backtrace: http://bugs.php.net/fix.php?id=44290&r=needtrace
Need Reproduce Script: http://bugs.php.net/fix.php?id=44290&r=needscript
Try newer version: http://bugs.php.net/fix.php?id=44290&r=oldversion
Not developer issue: http://bugs.php.net/fix.php?id=44290&r=support
Expected behavior: http://bugs.php.net/fix.php?id=44290&r=notwrong
Not enough info:
http://bugs.php.net/fix.php?id=44290&r=notenoughinfo
Submitted twice:
http://bugs.php.net/fix.php?id=44290&r=submittedtwice
register_globals: http://bugs.php.net/fix.php?id=44290&r=globals
PHP 4 support discontinued: http://bugs.php.net/fix.php?id=44290&r=php4
Daylight Savings: http://bugs.php.net/fix.php?id=44290&r=dst
IIS Stability: http://bugs.php.net/fix.php?id=44290&r=isapi
Install GNU Sed: http://bugs.php.net/fix.php?id=44290&r=gnused
Floating point limitations: http://bugs.php.net/fix.php?id=44290&r=float
No Zend Extensions: http://bugs.php.net/fix.php?id=44290&r=nozend
MySQL Configuration Error: http://bugs.php.net/fix.php?id=44290&r=mysqlcfg