Package home | Report new bug | New search | Development Roadmap Status: Open | Feedback | All | Closed Since Version 1.10.12

Request #13791 Options for the PHPConstants container
Submitted: 2008-04-28 17:45 UTC
From: lucor Assigned: cweiske
Status: Closed Package: Config (version CVS)
PHP Version: Irrelevant OS: Irrilevant
Roadmaps: (Not assigned)    
Subscription  


 [2008-04-28 17:45 UTC] lucor (Luca Corbo)
Description: ------------ It could be useful to set via options the possibility to add a comment and use double quote instead of single quote. In attach a patch allows this passing the following options to the writeConfig method: - use_double_quote = true -> enable the double quote; - comment = some text -> add a custom comment.

Comments

 [2010-12-20 14:50 UTC] cweiske (Christian Weiske)
-Status: Open +Status: Feedback
Why would you need that? I do not see a usecase for it.
 [2010-12-22 02:09 UTC] cweiske (Christian Weiske)
-Status: Feedback +Status: Closed -Assigned To: +Assigned To: cweiske
I see the bug you are facing - strings with single quotes in them break the generated config file. It's a bad idea to circumvent the problem by switching to double quotes, which would break also. The initial bug is fixed now; single quotes in strings get escaped now.