From: pookey at pookey dot co dot uk Operating system: linux PHP version: 5.0.2 PHP Bug Type: Documentation problem Bug description: parse_ini_file, bad docs, or perhaps a bug....
Description: ------------ http://uk2.php.net/parse_ini_file Here, there are exmaples where a ~ is used in an ini file. moo = http://..../~pookey/moo however, in PHP5 this needs to be moo = "http://..../~pookey/moo" I don't know if the docs need updating, or if this is a bug in the function! Kind Regards, Reproduce code: --------------- <?php parse_ini_file('./tests.ini', true); ?> !!! END PHP FILE !!! START OF INI FILE !!! [paths] TEST_HTTP_PATH = http://localhost/~pookey/wact/tests/cases/web_tests Expected result: ---------------- No parse error? or documentation showing "'s around the strings.... Actual result: -------------- Parse error whilst parsing ini file. -- Edit bug report at http://bugs.php.net/?id=30540&edit=1 -- Try a CVS snapshot (php4): http://bugs.php.net/fix.php?id=30540&r=trysnapshot4 Try a CVS snapshot (php5.0): http://bugs.php.net/fix.php?id=30540&r=trysnapshot50 Try a CVS snapshot (php5.1): http://bugs.php.net/fix.php?id=30540&r=trysnapshot51 Fixed in CVS: http://bugs.php.net/fix.php?id=30540&r=fixedcvs Fixed in release: http://bugs.php.net/fix.php?id=30540&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=30540&r=needtrace Need Reproduce Script: http://bugs.php.net/fix.php?id=30540&r=needscript Try newer version: http://bugs.php.net/fix.php?id=30540&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=30540&r=support Expected behavior: http://bugs.php.net/fix.php?id=30540&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=30540&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=30540&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=30540&r=globals PHP 3 support discontinued: http://bugs.php.net/fix.php?id=30540&r=php3 Daylight Savings: http://bugs.php.net/fix.php?id=30540&r=dst IIS Stability: http://bugs.php.net/fix.php?id=30540&r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=30540&r=gnused Floating point limitations: http://bugs.php.net/fix.php?id=30540&r=float MySQL Configuration Error: http://bugs.php.net/fix.php?id=30540&r=mysqlcfg