php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Request #36045 Nested quotes are ignored by parse_ini_file
Submitted: 2006-01-17 10:26 UTC Modified: 2015-01-09 00:06 UTC
Votes:6
Avg. Score:4.5 ± 0.8
Reproduced:5 of 5 (100.0%)
Same Version:4 (80.0%)
Same OS:1 (20.0%)
From: php at koterov dot ru Assigned:
Status: Open Package: Filesystem function related
PHP Version: 5.1.2 OS: Windows XP
Private report: No CVE-ID: None
View Add Comment Developer Edit
Anyone can comment on a bug. Have a simpler test case? Does it work for you on a different platform? Let us know!
Just going to say 'Me too!'? Don't clutter the database with that please — but make sure to vote on the bug!
Your email address:
MUST BE VALID
Solve the problem:
36 + 20 = ?
Subscribe to this entry?

 
 [2006-01-17 10:26 UTC] php at koterov dot ru
Description:
------------
While using parse_ini_file there is no possibility to insert double-quote in the value. Seems function completely removes nested quotes and da data between them.

Standard for INI file "quote quoting" method is doubling (see MS Excell, Thunderbird, Outlook, GMail programs which could create INI files). But it does not work with parse_ini_file.

Reproduce code:
---------------
--file.ini--
key  = "test""quotes"

--test.php--
print_r(parse_ini_file('file.ini'));

Expected result:
----------------
test"quotes

Actual result:
--------------
testquotes

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2015-01-09 00:06 UTC] ajf@php.net
-Package: Feature/Change Request +Package: Filesystem function related
 
PHP Copyright © 2001-2019 The PHP Group
All rights reserved.
Last updated: Mon May 20 10:01:27 2019 UTC