From: petr at hroch dot info Operating system: * PHP version: 5.3CVS-2008-02-01 (snap) PHP Bug Type: Filesystem function related Bug description: Quoted strings in parse_ini_file function are not handled properly
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 bug report at http://bugs.php.net/?id=44019&edit=1 -- Try a CVS snapshot (PHP 4.4): http://bugs.php.net/fix.php?id=44019&r=trysnapshot44 Try a CVS snapshot (PHP 5.2): http://bugs.php.net/fix.php?id=44019&r=trysnapshot52 Try a CVS snapshot (PHP 5.3): http://bugs.php.net/fix.php?id=44019&r=trysnapshot53 Try a CVS snapshot (PHP 6.0): http://bugs.php.net/fix.php?id=44019&r=trysnapshot60 Fixed in CVS: http://bugs.php.net/fix.php?id=44019&r=fixedcvs Fixed in release: http://bugs.php.net/fix.php?id=44019&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=44019&r=needtrace Need Reproduce Script: http://bugs.php.net/fix.php?id=44019&r=needscript Try newer version: http://bugs.php.net/fix.php?id=44019&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=44019&r=support Expected behavior: http://bugs.php.net/fix.php?id=44019&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=44019&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=44019&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=44019&r=globals PHP 3 support discontinued: http://bugs.php.net/fix.php?id=44019&r=php3 Daylight Savings: http://bugs.php.net/fix.php?id=44019&r=dst IIS Stability: http://bugs.php.net/fix.php?id=44019&r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=44019&r=gnused Floating point limitations: http://bugs.php.net/fix.php?id=44019&r=float No Zend Extensions: http://bugs.php.net/fix.php?id=44019&r=nozend MySQL Configuration Error: http://bugs.php.net/fix.php?id=44019&r=mysqlcfg