php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #25646 parse_ini_file with safe_mode
Submitted: 2003-09-24 11:58 UTC Modified: 2003-09-24 12:13 UTC
From: hd at phportals dot de Assigned:
Status: Closed Package: Filesystem function related
PHP Version: Irrelevant OS: Linux
Private report: No CVE-ID: None
View Add Comment Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
(description)
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: hd at phportals dot de
New email:
PHP Version: OS:

 

 [2003-09-24 11:58 UTC] 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.

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2003-09-24 12:13 UTC] sniper@php.net
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


 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Fri Mar 29 08:01:27 2024 UTC