Bug #17462 Updated: parse_ini_file does wrong thing with spaces in section markers

From: Date: Tue, 04 Jun 2002 22:05:38 +0000
Subject: Bug #17462 Updated: parse_ini_file does wrong thing with spaces in section markers
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-9503@lists.php.net to get a copy of this message
ID: 17462 Updated by: derick@php.net Reported By: nathan@dstatement.com -Status: Open +Status: Closed Bug Type: Unknown/Other Function Operating System: Linux-2.4/Debian Testing PHP Version: 4.1.2 New Comment: This bug has been fixed in CVS. You can grab a snapshot of the CVS version at http://snaps.php.net/. In case this was a documentation problem, the fix will show up soon at http://www.php.net/manual/. In case this was a PHP.net website problem, the change will show up on the PHP.net site and on the mirror sites. Thank you for the report, and for helping us make PHP better. kudos to Edin! Previous Comments: ------------------------------------------------------------------------ [2002-05-27 14:46:31] nathan@dstatement.com Given an ini file that looks like this (quotes added for emphasis): "[section1]" foo = bar blah = ya "[section2] " fooz = blat ya = John YaYa the resulting array when parsed with parse_ini_file('filename.ini', TRUE) would end up looking much like this: Array ( [section1] = Array ( ( [foo] => bar [blah] => ya [fooz] => blat [ya] => John YaYa ) ) ) Eg section1 and section2 would be merged together under section1 when the line containing marker for section2 did not end with "]" ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=17462&edit=1

« previous php.bugs (#9503) next »