# HG changeset patch
# User Raphael Pinson <[EMAIL PROTECTED]>
# Date 1216986895 -7200
# Node ID dcdc1717c8e0fb54f72d3acb7752896f52f77894
# Parent  f1ade288e3ea62d5799229c2a8610f6e1b4e86b2
Fix php.aug now that inifile.aug supports spaces in values by default

diff -r f1ade288e3ea -r dcdc1717c8e0 lenses/php.aug
--- a/lenses/php.aug    Fri Jul 25 13:54:01 2008 +0200
+++ b/lenses/php.aug    Fri Jul 25 13:54:55 2008 +0200
@@ -5,12 +5,6 @@ module PHP =
 module PHP =
 
     autoload xfm
-
-    (* Define a special entry when spaces are allowed in values *)
-    (* This is the case for error_reporting for example         *)
-    let comment_nospace  = IniFile.comment_generic /(#|;)/
-    let value_allowspace = del /[ \t]*/ " " . store /[^;# \t\n][^;#\n]*[^;# 
\t\n]|[^;# \t\n]/
-    let entry_allowspace (kw:regexp) = [ key kw . IniFile.value_sepwithcolon . 
value_allowspace? . (comment_nospace|IniFile.eol) ]
 
     (* PHP is a standard INI file *)
     let setting = IniFile.entry "always_populate_raw_post_data"
@@ -103,7 +97,7 @@ module PHP =
                | IniFile.entry /display(_startup)?_errors/
                 | IniFile.entry /disable_(classes|functions)/
                 | IniFile.entry /docref_(ext|root)/
-                | IniFile.entry /error_(append_string|log|prepend_string)/
+                | IniFile.entry 
/error_(append_string|log|prepend_string|reporting)/
                 | IniFile.entry 
/ignore_(repeated_errors|repeated_source|user_abort)/
                 | IniFile.entry /log_errors(_max_len)?/
                 | IniFile.entry /magic_quotes_(gpc|runtime|sybase)/
@@ -117,7 +111,6 @@ module PHP =
                 | IniFile.entry /upload_(max_filesize|tmp_dir)/
                 | IniFile.entry /user_(agent|dir)/
                 | IniFile.entry /xmlrpc_error(s|_number)/
-               | entry_allowspace "error_reporting"
 
        let record = IniFile.record "section" setting
        let lns    = IniFile.lns record

_______________________________________________
augeas-devel mailing list
[email protected]
https://www.redhat.com/mailman/listinfo/augeas-devel

Reply via email to