Bug #11756: Private, Protected variables in classes

From: Date: Wed, 27 Jun 2001 21:47:52 +0000
Subject: Bug #11756: Private, Protected variables in classes
Groups: php.dev 
Request: Send a blank email to php-dev+get-58238@lists.php.net to get a copy of this message
From: alavoor@yahoo.com Operating system: Linux PHP version: 4.0.6 PHP Bug Type: Feature/Change Request Bug description: Private, Protected variables in classes I have a good idea. It is extremely easy to implement private, protected variables in classes. PHP can use the name mangling of variables to implement private variables in classes. This technique is used by python language. What you do is - PHP will read the class and simply change the variable names to <variablename>_timestamp. Where timestamp is unique id got by time() function. Classes need private, protected variables. What do you say?? -- Edit Bug report at: http://bugs.php.net/?id=11756&edit=1

« previous php.dev (#58238) next »