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
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:
MUST BE VALID
Solve the problem:
45 - 32 = ?
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

Add a Patch

Pull Requests

Add a Pull Request

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-2021 The PHP Group
All rights reserved.
Last updated: Fri Mar 05 03:01:24 2021 UTC