php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #47332 parse_ini_file() throws parse error when key contains "/"
Submitted: 2009-02-06 23:18 UTC Modified: 2009-02-08 13:01 UTC
From: flaimo+php at gmail dot com Assigned:
Status: Not a bug Package: PHP options/info functions
PHP Version: 5.3.0beta1 OS: *
Private report: No CVE-ID: None
 [2009-02-06 23:18 UTC] 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

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2009-02-08 13:01 UTC] jani@php.net
That's a bug that was fixed.
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Tue Jun 25 02:01:28 2024 UTC