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

From: Date: Sun, 10 Nov 2002 02:13:54 +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-24414@lists.php.net to get a copy of this message
ID: 20331 Updated by: rasmus@php.net Reported By: andrew@evilwalrus.com -Status: Open +Status: Won\'t fix -Bug Type: Filesystem function related +Bug Type: Feature/Change Request Operating System: WinNT (XP) PHP Version: 4.3.0-pre2 New Comment: Why do you think it is a bug? It has never supported arrays and introducing it would probably break BC in nasty ways. So this is at best a feature request that is unlikely to be addressed. Previous Comments: ------------------------------------------------------------------------ [2002-11-09 20:05:47] andrew@evilwalrus.com Also, this `bug' has beeen experienced in all my past releases of PHP, not just 4.3.0-pre2. ------------------------------------------------------------------------ [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 (#24414) next »