|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Request #22750 change that parse_ini_file returns false on error
Submitted: 2003-03-17 11:46 UTC Modified: 2011-01-01 01:29 UTC
Avg. Score:4.0 ± 0.0
Reproduced:1 of 1 (100.0%)
Same Version:1 (100.0%)
Same OS:1 (100.0%)
From: fbeyer at clickhand dot de Assigned: jani (profile)
Status: Closed Package: PHP options/info functions
PHP Version: 4.3.2RC1 OS: any
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.
Block user comment
Status: Assign to:
Bug Type:
From: fbeyer at clickhand dot de
New email:
PHP Version: OS:


 [2003-03-17 11:46 UTC] fbeyer at clickhand dot de
I would like to have parse_ini_file() return false on failure. Currently, if there is a syntax error inside, the function will return an array containing the data parsed until the error position and therefore there is no possibility for the application to ensure that the file is read properly.


Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2011-01-01 01:28 UTC]
-Status: Open +Status: Closed -Package: Feature/Change Request +Package: *General Issues -Assigned To: +Assigned To: jani
 [2011-01-01 01:28 UTC]
Fixed in 5.3 at least.
 [2011-01-01 01:29 UTC]
-Package: *General Issues +Package: PHP options/info functions
PHP Copyright © 2001-2021 The PHP Group
All rights reserved.
Last updated: Wed Aug 04 07:01:24 2021 UTC