Bug #13279 Updated: parse_ini_file causes PHP to exit if ini file syntax is malformed
| From: | manuzhai@php.net | Date: | Mon, 29 Apr 2002 08:10:26 +0000 |
| Subject: | Bug #13279 Updated: parse_ini_file causes PHP to exit if ini file syntax is malformed | ||
| References: | 1 | Groups: | php.bugs php.doc |
| Request: | Send a blank email to php-bugs+get-6429@lists.php.net to get a copy of this message | ||
ID: 13279
Updated by: manuzhai@php.net
Reported By: zak@php.net
-Status: Open
+Status: Closed
Bug Type: Documentation problem
Operating System: Win2k/CGI
PHP Version: 4.0.6
New Comment:
This bug has been fixed in CVS. You can grab a snapshot of the
CVS version at http://snaps.php.net/
Previous Comments:
------------------------------------------------------------------------
[2002-01-25 02:34:37] derick@php.net
It's not a bug anyways... making it a Documentation problem.
------------------------------------------------------------------------
[2002-01-24 07:56:19] 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>
------------------------------------------------------------------------
[2001-09-13 03:42:51] 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. :)
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=13279&edit=1