note 106538 added to function.parse-ini-file
| From: | jwkaatgmxdotnet at osu1 dot php dot net | Date: | Thu, 17 Nov 2011 10:52:15 +0000 |
| Subject: | note 106538 added to function.parse-ini-file | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-184539@lists.php.net to get a copy of this message | ||
Just to give novices a heads up since that can be really time consuming:
BE AWARE of CONSTANTS you defined!
ANY INI value NOT IN QUOTES that matches ANY constant will be replaced by the constant's value
while any other unquoted value will be regarded as being a text "as is".
If you want to AVOID REPLACEMENTS, be sure you stringently enclose your strings in quotes!
Remark:
The German examples are (have been?) wrong here. It shows(ed?) that [animal]=BIRD but it will be
[animal]=Dodo bird.
Example Extension:
In the example, if the INI file's line would have been:
animal = "BIRD" (notice the quotes)
then [animal] would ALLWAYS equal "BIRD", no matter if a constant BIRD would be defined or
not.
----
Server IP: 130.206.1.5
Probable Submitter: 79.156.61.68
----
Manual Page -- http://www.php.net/manual/en/function.parse-ini-file.php
Edit -- https://master.php.net/note/edit/106538
Del: integrated -- https://master.php.net/note/delete/106538/integrated
Del: useless -- https://master.php.net/note/delete/106538/useless
Del: bad code -- https://master.php.net/note/delete/106538/bad+code
Del: spam -- https://master.php.net/note/delete/106538/spam
Del: non-english -- https://master.php.net/note/delete/106538/non-english
Del: in docs -- https://master.php.net/note/delete/106538/in+docs
Del: other reasons-- https://master.php.net/note/delete/106538
Reject -- https://master.php.net/note/reject/106538
Search -- https://master.php.net/manage/user-notes.php