|  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
Anyone can comment on a bug. Have a simpler test case? Does it work for you on a different platform? Let us know!
Just going to say 'Me too!'? Don't clutter the database with that please !
Your email address:
Solve the problem:
42 + 8 = ?
Subscribe to this entry?

 [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: Sun Oct 17 17:03:33 2021 UTC