#47332 [Opn->Bgs]: parse_ini_file() throws parse error when key contains "/"
ID: 47332
Updated by: jani@php.net
Reported By: flaimo+php at gmail dot com
-Status: Open
+Status: Bogus
Bug Type: PHP options/info functions
Operating System: *
PHP Version: 5.3.0beta1
New Comment:
That's a bug that was fixed.
Previous Comments:
------------------------------------------------------------------------
[2009-02-06 23:18:50] flaimo+php at gmail dot com
Description:
------------
with 5.3 parse_ini_file() throws parse error if one of the keys
contains "/" like in the example below.
the same file is parsed correctly in 5.2.5.
i think it may have something to do with the changes made in
http://bugs.php.net/bug.php?id=42069.
Reproduce code:
---------------
ini file:
[abbr]
; abbr = full name | language of the abbr
c.a.d. = "cash against documents | en"
d/s = "days after sight | en"
f.a.a. = "free of all average | en"
n.d. = "no date | en"
Expected result:
----------------
no error
Actual result:
--------------
Warning: parse error in ../locale/en/words.ini on line 30 in
W:\i18n_v2\inc\class.I18NformatString.inc.php on line 103
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=47332&edit=1
Thread (2 messages)