#25646 [Opn->Csd]: parse_ini_file with safe_mode
ID: 25646
Updated by: sniper@php.net
Reported By: hd at phportals dot de
-Status: Open
+Status: Closed
Bug Type: Filesystem function related
Operating System: Linux
PHP Version: Irrelevant
New Comment:
Thank you for your bug report. This issue has already been fixed
in the latest released version of PHP, which you can download at
http://www.php.net/downloads.php
Previous Comments:
------------------------------------------------------------------------
[2003-09-24 11:58:39] hd at phportals dot de
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 this bug report at http://bugs.php.net/?id=25646&edit=1
Thread (2 messages)