From: hd at phportals dot de Operating system: Linux PHP version: Irrelevant PHP Bug Type: Filesystem function related Bug description: parse_ini_file with save_mode
Description: ------------ When give an absolute path to parse_ini_file and save_mode is active, an error occured, even if the absolute path points to an allowed directory. The only solution is to user fopen etc. and process the file. Happend with 4.2.3; I'm not able to update on that server. Reproduce code: --------------- $path = dirname(__FILE__) . '/my.ini'; $cfg = parse_ini_file($path); Expected result: ---------------- $cfg set up with an array or FALSE. Actual result: -------------- An error: Save mode restrictions. -- Edit bug report at http://bugs.php.net/?id=25646&edit=1 -- Try a CVS snapshot (php4): http://bugs.php.net/fix.php?id=25646&r=trysnapshot4 Try a CVS snapshot (php5): http://bugs.php.net/fix.php?id=25646&r=trysnapshot5 Fixed in CVS: http://bugs.php.net/fix.php?id=25646&r=fixedcvs Fixed in release: http://bugs.php.net/fix.php?id=25646&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=25646&r=needtrace Try newer version: http://bugs.php.net/fix.php?id=25646&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=25646&r=support Expected behavior: http://bugs.php.net/fix.php?id=25646&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=25646&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=25646&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=25646&r=globals PHP 3 support discontinued: http://bugs.php.net/fix.php?id=25646&r=php3 Daylight Savings: http://bugs.php.net/fix.php?id=25646&r=dst IIS Stability: http://bugs.php.net/fix.php?id=25646&r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=25646&r=gnused Floating point limitations: http://bugs.php.net/fix.php?id=25646&r=float