Hugo Sandoval pisze: > El Monday 30 March 2009 15:10:05 Piotrek Karas escribió: >> Hi, >> >> I'm trying to use Configuration component to dynamically modify linux >> configuration files. All seems fine except for string-based values (both >> empty and non-empty ones) that get automatically quoted, for example: >> >> Read operation: >> oldest_color = (136, 136, 255) >> >> Write operation: >> oldest_color = "(136, 136, 255)" >> > Did you try with escape characters? > oldest_color = \"(136, 136, 255)\"
Hi, Maybe I did not express myself clearly. This ini value is not something I individually touch at all! Look at my example, where I only create a config object to write it back just moments later. And all the string-like values that are not within keywords like 'true' or 'false' will be quoted: <?php $configPath = '/var/www/myapp/config'; $reader = new ezcConfigurationIniReader(); $reader->init( $configPath, 'settings' ); $cfg = $reader->load(); $writer = new ezcConfigurationIniWriter(); $writer->init( $configPath, 'settings', $cfg ); $writer->save(); ?> If I missed something from your suggestion - please explain. Will I have to write my own writer implementation? Thanks, Piotrek -- Components mailing list Components@lists.ez.no http://lists.ez.no/mailman/listinfo/components