| Bug #47703 | ini file syntax not well documented | ||||
|---|---|---|---|---|---|
| Submitted: | 18 Mar 7:17am UTC | Modified: | 7 Aug 2:58pm UTC | ||
| From: | ctoomey at yahoo-inc dot com | Assigned to: | |||
| Status: | Analyzed | Category: | Documentation problem | ||
| Version: | Irrelevant | OS: | * | ||
| Votes: | 6 | Avg. Score: | 4.3 ± 0.7 | Reproduced: | 6 of 6 (100.0%) |
| Same Version: | 6 (100.0%) | Same OS: | 5 (83.3%) | ||
[18 Mar 7:17am UTC] ctoomey at yahoo-inc dot com
[7 Aug 2:56pm UTC] jani@php.net
In PHP 5.3 single quotes allow putting anything inside them, except single quotes. In PHP 5.2 they have no meaning and are included in the value. # Is comment in PHP 5.3 but not in 5.2, and in 5.3 it's already deprecated and using it causes a deprecated warning if error_reporting is appropriate. And it's only comment when it's not used after = Keys without values are just ignored. Only when there is = char, you get it into the array.
[7 Aug 2:58pm UTC] jani@php.net
See also bug #44575
