[augeas-devel] [Augeas] #299: PHPvars lens class and var/public support

Augeas trac at fedorahosted.org
Thu Aug 30 08:40:56 UTC 2012


#299: PHPvars lens class and var/public support
--------------------+---------------------
 Reporter:  aheahe  |       Owner:  lutter
     Type:  defect  |      Status:  new
 Priority:  major   |   Milestone:  next
Component:  Augeas  |     Version:  0.8.0
 Keywords:          |  Blocked By:
 Blocking:          |
--------------------+---------------------
 Attacted is patch for phpvars.aug and test_phpvars.aug for class support
 and support for public/var values.

 It would be impossible to support all kind of PHP language constructs, but
 this small patch makes it possible to use augeas for some popular systems
 like configuration.php in joomla etc.

 Notice/Limitations/ambiguity

 At least in php 5.3+ and possible php 5+ variables inside classes must be
 prepended with var/public/protected/private. The following patch only
 support var/public (which means exactly the same). It would be of a very
 limited value to support "protected" and "private values" which would not
 typically be used in a configuration file (maybe protected in some rare
 cases).

 There is an abiguity -"var" values will be saved as "public" - it is
 eactly the same, but "public" is what should be used in php5+. As far as
 my knowledge in lens/augeas it would be difficult to solve this ambuguity,
 and also of a limited value.

 Also new testcase etc attached.

 Best Regards

-- 
Ticket URL: <https://fedorahosted.org/augeas/ticket/299>
Augeas <http://augeas.net/>
a configuration API




More information about the augeas-devel mailing list