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
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If this is not your bug, you can add a comment by following this link.
If this is your bug, but you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
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.

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-2024 The PHP Group
All rights reserved.
Last updated: Thu Apr 25 06:01:35 2024 UTC