#29539 [Opn]: a small reqeust for parse_ini_file()

From: Date: Fri, 06 Aug 2004 09:51:51 +0000
Subject: #29539 [Opn]: a small reqeust for parse_ini_file()
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-64185@lists.php.net to get a copy of this message
ID: 29539 User updated by: amir at foresthc dot com Reported By: amir at foresthc dot com Status: Open Bug Type: Feature/Change Request PHP Version: Irrelevant New Comment: And that is actually the *current* behaviour... I can't seem to find it documented anywhere. Well I guess we can close the bug... Previous Comments: ------------------------------------------------------------------------ [2004-08-06 08:44:51] derick@php.net A boolean argument to what? IMO if this is to be added, you should specify your settings like this: [section] key1 = value1 key2[] = value2 key2[] = value3 That makes it clear and also addresses the BC issue. ------------------------------------------------------------------------ [2004-08-05 17:36:01] amir at foresthc dot com Description: ------------ It would be nice if the parse_ini_file() would return multiple keys with the same name as an array, instead of just overwriting the previous one. I know there is one previous "bug report" for this request, but I was affraid that just adding a comment to a closed bug might go un-noticed. Regarding BC, but I guess that can be addressed by a second optional boolean argument. 10x anyway. Reproduce code: --------------- [section] key1 = value1 key2 = value2 key2 = value3 Expected result: ---------------- Array ( [section] => Array ( [key1] => "value1" [key2] => Array ( [0] => "value2" [1] => "value3" ) ) ) Actual result: -------------- Array ( [section] => Array ( [key1] => "value1" [key2] => "value3" ) ) ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=29539&edit=1

« previous php.bugs (#64185) next »