|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2008-03-27 09:40 UTC] jani@php.net
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Wed Oct 29 05:00:01 2025 UTC |
Description: ------------ when character '$' is present in a value string , parse_ini_file() return a warning/error and cut the value string before the $ so data result is wrong ! Reproduce code: --------------- <?php $ini_array = parse_ini_file("test.ini"); print_r($ini_array); ?> test.ini file content : toto = aaa$bbb Expected result: ---------------- Array ( [toto] => aaa$bbb) Actual result: -------------- Warning: Error parsing test.ini on line 8 in parse_ini.php on line 2 Array ( [toto] => aaa)