|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
[2004-08-05 17:36 UTC] 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"
)
)
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Tue Oct 28 10:00:01 2025 UTC |
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.