php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Doc Bug #13279 parse_ini_file causes PHP to exit if ini file syntax is malformed
Submitted: 2001-09-13 03:42 UTC Modified: 2002-04-29 04:10 UTC
Votes:1
Avg. Score:4.0 ± 0.0
Reproduced:1 of 1 (100.0%)
Same Version:1 (100.0%)
Same OS:0 (0.0%)
From: zak@php.net Assigned:
Status: Closed Package: Documentation problem
PHP Version: 4.0.6 OS: Win2k/CGI
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 you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: zak@php.net
New email:
PHP Version: OS:

 

 [2001-09-13 03:42 UTC] zak@php.net
parse_ini_file() causes PHP to exit if ini file syntax is malformed. This can be reproduced by parsing a ini file with the following content:

; Start broken ini file
a
; End broken ini file

This is not quite a bug - more an expression of the belief that functions should exit gracefully when possible. :)

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2002-01-24 07:56 UTC] eskaly@php.net
doesn't seem to be os depended, got the same behaviour under linux 2.4.3, php 4.0.6
malformed means for example
<sample.ini>
[foo]
bar = buz
boz
<EOF>
 [2002-01-25 02:34 UTC] derick@php.net
It's not a bug anyways... making it a Documentation problem.
 [2002-04-29 04:10 UTC] manuzhai@php.net
This bug has been fixed in CVS. You can grab a snapshot of the
CVS version at http://snaps.php.net/


 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Thu Sep 12 09:01:27 2024 UTC