-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Mustafa A. Hashmi wrote on 15.08.2009 13:03: > Zend Framework version 1.7.4. > PHP version 5.2.4 (ubuntu hardy 8.04 pkg) > > Hi all, > > When updating a configuration file via Zend_Config_Writer_Ini, I > noticed that constants defined in the configuration would get wrapped > in quotation marks (or converted to the value of the constant if not > passed), effectively negating the intent.
In fact I already thought about that problem and came up with an almost simple solution. I'd introduce Zend_Config_Writer_ConstantValue, to which you can append constants and string values. The different writers could then use this class to write constants correctly. The problem is, that when reading an existing configuration, constants will get converted automatically to their string equivalents, and thus will not be rewritten with Zend_Config_Writer, so this would only be a write-only solution. - -- ................................... : ___ _ ___ ___ ___ _ ___ : : | \ /_\ / __| _ \ _ (_) \ : : | |) / _ \\__ \ _/ / | |) | : : |___/_/:\_\___/_| |_|_\_|___/ : :........:........................: : Web : http://www.dasprids.de : : E-mail : m...@dasprids.de : : Jabber : jab...@dasprids.de : : ICQ : 105677955 : :........:........................: -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.9 (GNU/Linux) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iEYEARECAAYFAkqGomcACgkQ0HfT5Ws789BKRQCfU5yM1AEumKfuapE1csaMGsHS 8AIAoLhs5IEshGkvVVI4mhg/vzz+zH1u =+dP4 -----END PGP SIGNATURE-----