Details
-
Type:
Bug
-
Status:
Resolved
-
Priority:
Minor
-
Resolution: Fixed
-
Affects Version/s: 1.7.5
-
Fix Version/s: 1.10.0
-
Component/s: Zend_Config_Writer
-
Labels:None
Description
Zend_Config_Writer_Ini adds anti-slashes to strings when it writes data into files the same as does Zend_Config_Writer_Array.
but it encloses the string in " " quotes.
Once you read the file, strings remain escaped with anti-slashes and you have to parse your Zend_Config object.
Workaround : in Zend_Config_Writer_Ini function's _prepareValue(), don't parse strings with addslashes().
Hope report correct and appropriate. its my first.
When reading an .ini file with parse_ini_file(), all double quotes - escaped or not - are removed: so str"ing becomes string and str\"ing becomes str\ing.
Talked with Ben about this, removing the addslashes() and throwing an Exception when a double quote is inside the stored value.