ID: 44019 Updated by: [EMAIL PROTECTED] Reported By: petr at hroch dot info -Status: Open +Status: Feedback Bug Type: Filesystem function related Operating System: * PHP Version: 5.3CVS-2008-02-01 (snap) New Comment:
Where did you get the idea that that should work in the first place? The correct way: foo="{$FOO}barian" Previous Comments: ------------------------------------------------------------------------ [2008-02-01 23:15:50] petr at hroch dot info Description: ------------ Quoted strings in parse_ini_file function are not handled properly Tested on Windows XP SP2 php5.3-dev running as apache 2.2.6 module possibly not working on the other operation systems I've searched the web and I've found the same problem already described php6.0-dev snapshot http://groups.google.pl/group/mailing.www.php-dev/msg/e5b4b179d4d3ce15 Reproduce code: --------------- Ini file test.ini content: -------------------------- [Topic] number=1 string="test" foo=FOO"barian" PHP code test.php: ------------------ <? define("FOO","bar"); print_r(parse_ini_file("test.ini",true)); ?> Expected result: ---------------- Array ( [Topic] => Array ( [number] => 1 [string] => test [foo] => barbarian ) ) Actual result: -------------- Warning: syntax error, unexpected TC_QUOTED_STRING in test.ini on line 3 in D:\htdocs\test.php on line 3 Array ( ) ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=44019&edit=1