Re: Config/Container/IniFile
| From: | Markus Fischer | Date: | Mon, 17 Sep 2001 06:13:30 +0000 |
| Subject: | Re: Config/Container/IniFile | ||
| References: | 1 2 | Groups: | php.pear.dev |
| Request: | Send a blank email to pear-dev+get-1966@lists.php.net to get a copy of this message | ||
On Sun, Sep 16, 2001 at 11:20:46PM +0200, Alexander Merz wrote :
> > Is it by intention that values on right side of the '=' need to
> > be quoted to acutally include whitespaces?
>
> I decided to choose this convention after experience with predecessor of
> Config_IniFile ( File_Ini, avaible from
> http://www-user.tu-chemnitz.de/~meal/php/). It requires a lot
> of work to differ
> and find the value from lines like this:
>
> val="see a space"
> val=see a space
> val="see a space" // comment
> val=see a space // comment
> val=see a space // comment "nice to be a PEAR-member"
> val="see a space and a ; comment char" ; and at least another comment "with
> quotes"
But forcing to use quotes is just awkward. I've never seen an ini
file forcing to use quotes just to contain spaces (except on the
left and right side because values normally get trimmed; this is
a more intuitive behaviour).
> Catching all this possibilites result in a lot of pregs's and if's.
Is speed really an issue here? From my expirience a good
implementation doesn't suffer of such a great performance loss.
- Markus