From: VJTD3 at VJTD3 dot com Operating system: any PHP version: 5.2.5 PHP Bug Type: Filesystem function related Bug description: parse_ini_file crashes on "(" or ")"
Description: ------------ if a ini file has a "(" or ")" in it the parse_ini_file function will end on the character before the "(" or ")". in some cases or remove the "(" and ")" or just dump everything between the "(" and ")". In a nut shell it hates "(" and ")" for some reason. Reproduce code: --------------- sample "demo.ini" file: [demo] a=1 b=( c=3 php -r "print_r(parse_ini_file('demo.ini', true));" Expected result: ---------------- Array ( [demo] => Array ( [a] => 1 [b] => ( [c] => 3 ) ) Actual result: -------------- Warning: Error parsing demo.ini on line 3 Array ( [demo] => Array ( [a] => 1 [b] => ) ) -- Edit bug report at http://bugs.php.net/?id=44442&edit=1 -- Try a CVS snapshot (PHP 5.2): http://bugs.php.net/fix.php?id=44442&r=trysnapshot52 Try a CVS snapshot (PHP 5.3): http://bugs.php.net/fix.php?id=44442&r=trysnapshot53 Try a CVS snapshot (PHP 6.0): http://bugs.php.net/fix.php?id=44442&r=trysnapshot60 Fixed in CVS: http://bugs.php.net/fix.php?id=44442&r=fixedcvs Fixed in release: http://bugs.php.net/fix.php?id=44442&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=44442&r=needtrace Need Reproduce Script: http://bugs.php.net/fix.php?id=44442&r=needscript Try newer version: http://bugs.php.net/fix.php?id=44442&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=44442&r=support Expected behavior: http://bugs.php.net/fix.php?id=44442&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=44442&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=44442&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=44442&r=globals PHP 4 support discontinued: http://bugs.php.net/fix.php?id=44442&r=php4 Daylight Savings: http://bugs.php.net/fix.php?id=44442&r=dst IIS Stability: http://bugs.php.net/fix.php?id=44442&r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=44442&r=gnused Floating point limitations: http://bugs.php.net/fix.php?id=44442&r=float No Zend Extensions: http://bugs.php.net/fix.php?id=44442&r=nozend MySQL Configuration Error: http://bugs.php.net/fix.php?id=44442&r=mysqlcfg