#20331 [Opn]: parse_ini_file() doesn't parse multiple keys

From: Date: Sun, 10 Nov 2002 02:05:47 +0000
Subject: #20331 [Opn]: parse_ini_file() doesn't parse multiple keys
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-24413@lists.php.net to get a copy of this message
ID: 20331 User updated by: andrew@evilwalrus.com Reported By: andrew@evilwalrus.com Status: Open Bug Type: Filesystem function related Operating System: WinNT (XP) PHP Version: 4.3.0-pre2 New Comment: Also, this `bug' has beeen experienced in all my past releases of PHP, not just 4.3.0-pre2. Previous Comments: ------------------------------------------------------------------------ [2002-11-09 20:04:56] andrew@evilwalrus.com --- Original INI File (1.ini) --- [MAIN] key1=foo key2=bar [BAZ] foo=1 foo=2 foo=3 --- End INI File --- Upon using parse_ini_file() to parse out the keys and section names, i noticed that the function doesn't recoginize multiple keys (as in the [BAZ] section). It simply returns the last key of that name, and that's it. It'd be in well interest if this could be fixed to return the array of the keynames, instead of the last given key. ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=20331&edit=1

« previous php.bugs (#24413) next »