ID: 44544 Updated by: [EMAIL PROTECTED] Reported By: frederes at free dot fr -Status: Open +Status: Closed Bug Type: *General Issues Operating System: Gentoo 2006 PHP Version: 5.2.6RC2 New Comment:
Fixed in HEAD/PHP_5_3, won't fix in PHP_5_2, use quotes instead (as you ALWAYS should anyway): toto = "aaa$bbb" Previous Comments: ------------------------------------------------------------------------ [2008-03-27 04:00:27] frederes at free dot fr 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) ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=44544&edit=1