note 47138 rejected from function.parse-ini-file by betz
| From: | betz@php.net | Date: | Thu, 04 Nov 2004 11:26:36 +0000 |
| Subject: | note 47138 rejected from function.parse-ini-file by betz | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-79598@lists.php.net to get a copy of this message | ||
Note Submitter: stephan at s11n dot net
----
Beware of undocumented, brain-dead behaviours in parse_ini_file(). Try this in your ini file:
foo = none
...
echo $array['foo'];
The output is EMPTY! The function parses the word 'none' into an empty string. If you
quote the word it does not do this.