I've been playing around with Zend_Config_Writer, and although I can make it do what I want I find the lack of formatting a bit disturbing since:
[production : general]
;
; Production site configuration data.
;
locale = sv_SE
...
Becomes
[production : general]
locale = sv_SE
...
I realize that the "new" configuration is written based on the saved values in a Zend_Config object and this object doesn't contain any comments or bland rows, but this makes the new configuration very hard to read especially for my co-workers.
Can this be solved somehow? The best I've come up with is using different sections with a "cascading" inheritance, but that seems like a stupid idea