#22923 [Opn->Ana]: parse_ini_file parsing error when using no/yes/true/false as key

From: Date: Thu, 27 Mar 2003 12:31:15 +0000
Subject: #22923 [Opn->Ana]: parse_ini_file parsing error when using no/yes/true/false as key
References: 1  Groups: php.doc 
Request: Send a blank email to phpdoc+get-969352335@lists.php.net to get a copy of this message
ID: 22923 Updated by: sniper@php.net Reported By: argh at php-tools dot net -Status: Open +Status: Analyzed -Bug Type: Filesystem function related +Bug Type: Documentation problem Operating System: Linux PHP Version: 4.3.1 New Comment: 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. Previous Comments: ------------------------------------------------------------------------ [2003-03-27 06:03:42] 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... ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=22923&edit=1

« previous php.doc (#969352335) next »