php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #21546 parse_ini_file() sends warning if the file is malformed
Submitted: 2003-01-09 06:47 UTC Modified: 2003-01-13 10:34 UTC
From: k.schroeder@php.net Assigned: derick (profile)
Status: Closed Package: Unknown/Other Function
PHP Version: 4.3.0 OS: Linux
Private report: No CVE-ID: None
 [2003-01-09 06:47 UTC] k.schroeder@php.net
parse_ini_file() outputs "Warning: Error parsing /file2parse.ini ..." if there is more than one = in a config line.

PHP ignores error_reporting(0) and @parse_ini_file().

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2003-01-09 08:59 UTC] nicos@php.net
This is an excepted behaviour. 

Changing this to a documentation problem (even if it says already that PHP will quit if the file is malformed).
 [2003-01-09 09:24 UTC] nicos@php.net
This bug has been fixed in CVS.

In case this was a PHP problem, snapshots of the sources are packaged
every three hours; this change will be in the next snapshot. You can
grab the snapshot at http://snaps.php.net/.
 
In case this was a documentation problem, the fix will show up soon at
http://www.php.net/manual/.

In case this was a PHP.net website problem, the change will show
up on the PHP.net site and on the mirror sites in short time.
 
Thank you for the report, and for helping us make PHP better.


 [2003-01-09 15:26 UTC] derick@php.net
bullshit nicos, this is a bug. It does not terminate at all, you modified the docs in a wrong way. It's still a bug, the warning should be silenced.

reopening
 [2003-01-09 15:38 UTC] derick@php.net
needs some thing how to do it cleanly, will sleep over it :-)
 [2003-01-13 10:34 UTC] iliaa@php.net
This bug has been fixed in CVS.

In case this was a PHP problem, snapshots of the sources are packaged
every three hours; this change will be in the next snapshot. You can
grab the snapshot at http://snaps.php.net/.
 
In case this was a documentation problem, the fix will show up soon at
http://www.php.net/manual/.

In case this was a PHP.net website problem, the change will show
up on the PHP.net site and on the mirror sites in short time.
 
Thank you for the report, and for helping us make PHP better.


 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Tue Jun 11 10:01:31 2024 UTC