php.net |  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
Votes:1
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
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:
MUST BE VALID
Solve the problem:
48 + 50 = ?
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.

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2011-01-01 01:28 UTC] jani@php.net
-Status: Open +Status: Closed -Package: Feature/Change Request +Package: *General Issues -Assigned To: +Assigned To: jani
 [2011-01-01 01:28 UTC] jani@php.net
Fixed in 5.3 at least.
 [2011-01-01 01:29 UTC] jani@php.net
-Package: *General Issues +Package: PHP options/info functions
 
PHP Copyright © 2001-2025 The PHP Group
All rights reserved.
Last updated: Sat Jul 05 22:01:35 2025 UTC