From: [EMAIL PROTECTED]
Operating system: Linux-2.4/Debian Testing
PHP version: 4.1.2
PHP Bug Type: Unknown/Other Function
Bug description: parse_ini_file does wrong thing with spaces in section markers
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 bug report at http://bugs.php.net/?id=17462&edit=1
--
Fixed in CVS: http://bugs.php.net/fix.php?id=17462&r=fixedcvs
Fixed in release: http://bugs.php.net/fix.php?id=17462&r=alreadyfixed
Need backtrace: http://bugs.php.net/fix.php?id=17462&r=needtrace
Try newer version: http://bugs.php.net/fix.php?id=17462&r=oldversion
Not developer issue: http://bugs.php.net/fix.php?id=17462&r=support
Expected behavior: http://bugs.php.net/fix.php?id=17462&r=notwrong
Not enough info: http://bugs.php.net/fix.php?id=17462&r=notenoughinfo
Submitted twice: http://bugs.php.net/fix.php?id=17462&r=submittedtwice
register_globals: http://bugs.php.net/fix.php?id=17462&r=globals