From: f dot braem at skynet dot be Operating system: Win32 PHP version: 5.0.0RC2 PHP Bug Type: Filesystem function related Bug description: ini file with ! character fails
Description: ------------ With the given ini file: 0=Test 1 1=Test 2! 2=Test 3 The parsing of the file stops at the ! sign. When 1 is Test ! 2, only Test will be assigned to element 1. Reproduce code: --------------- <?php $values = parse_ini_file("c:\\temp\\test.ini"); print_r($values); ?> Expected result: ---------------- Array ( [0] => Test 1 [1] => Test 2 [2] => Test 3 ) Actual result: -------------- Array ( [0] => Test 1 [1] => Test 2 ) -- Edit bug report at http://bugs.php.net/?id=28436&edit=1 -- Try a CVS snapshot (php4): http://bugs.php.net/fix.php?id=28436&r=trysnapshot4 Try a CVS snapshot (php5): http://bugs.php.net/fix.php?id=28436&r=trysnapshot5 Fixed in CVS: http://bugs.php.net/fix.php?id=28436&r=fixedcvs Fixed in release: http://bugs.php.net/fix.php?id=28436&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=28436&r=needtrace Need Reproduce Script: http://bugs.php.net/fix.php?id=28436&r=needscript Try newer version: http://bugs.php.net/fix.php?id=28436&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=28436&r=support Expected behavior: http://bugs.php.net/fix.php?id=28436&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=28436&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=28436&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=28436&r=globals PHP 3 support discontinued: http://bugs.php.net/fix.php?id=28436&r=php3 Daylight Savings: http://bugs.php.net/fix.php?id=28436&r=dst IIS Stability: http://bugs.php.net/fix.php?id=28436&r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=28436&r=gnused Floating point limitations: http://bugs.php.net/fix.php?id=28436&r=float