php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Doc Bug #22923 parse_ini_file parsing error when using no/yes/true/false as key
Submitted: 2003-03-27 06:03 UTC Modified: 2003-04-01 17:19 UTC
From: argh at php-tools dot net Assigned:
Status: Closed Package: Documentation problem
PHP Version: 4.3.1 OS: Linux
Private report: No CVE-ID: None
 [2003-03-27 06:03 UTC] argh at php-tools dot net
When using any of the following values:

no
yes
true
false

As key for a configuration entry, like

NO = "Norway"

The function will return a parse error for the ini file. Found this when I tried to implement a countries list this way. Norway just happens to have that country code...

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2003-03-27 06:31 UTC] sniper@php.net
This is by design and won't be fixed.
Should be documented though. Those are reserved words and can not be used in ini files.

 [2003-04-01 17:19 UTC] alindeman@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: Thu May 02 22:01:30 2024 UTC