From:             amir at foresthc dot com
Operating system: 
PHP version:      Irrelevant
PHP Bug Type:     Feature/Change Request
Bug description:  a small reqeust for parse_ini_file()

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 bug report at http://bugs.php.net/?id=29539&edit=1
-- 
Try a CVS snapshot (php4):  http://bugs.php.net/fix.php?id=29539&r=trysnapshot4
Try a CVS snapshot (php5):  http://bugs.php.net/fix.php?id=29539&r=trysnapshot5
Fixed in CVS:               http://bugs.php.net/fix.php?id=29539&r=fixedcvs
Fixed in release:           http://bugs.php.net/fix.php?id=29539&r=alreadyfixed
Need backtrace:             http://bugs.php.net/fix.php?id=29539&r=needtrace
Need Reproduce Script:      http://bugs.php.net/fix.php?id=29539&r=needscript
Try newer version:          http://bugs.php.net/fix.php?id=29539&r=oldversion
Not developer issue:        http://bugs.php.net/fix.php?id=29539&r=support
Expected behavior:          http://bugs.php.net/fix.php?id=29539&r=notwrong
Not enough info:            http://bugs.php.net/fix.php?id=29539&r=notenoughinfo
Submitted twice:            http://bugs.php.net/fix.php?id=29539&r=submittedtwice
register_globals:           http://bugs.php.net/fix.php?id=29539&r=globals
PHP 3 support discontinued: http://bugs.php.net/fix.php?id=29539&r=php3
Daylight Savings:           http://bugs.php.net/fix.php?id=29539&r=dst
IIS Stability:              http://bugs.php.net/fix.php?id=29539&r=isapi
Install GNU Sed:            http://bugs.php.net/fix.php?id=29539&r=gnused
Floating point limitations: http://bugs.php.net/fix.php?id=29539&r=float

Reply via email to