php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #49025 parse_ini_file() cannot parse brackets in the values.
Submitted: 2009-07-23 02:48 UTC Modified: 2009-07-23 11:04 UTC
Votes:1
Avg. Score:1.0 ± 0.0
Reproduced:0 of 0 (0.0%)
From: redplug at web dot de Assigned:
Status: Not a bug Package: Filesystem function related
PHP Version: 5.2.10 OS: Debian "Leeny"
Private report: No CVE-ID: None
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: redplug at web dot de
New email:
PHP Version: OS:

 

 [2009-07-23 02:48 UTC] redplug at web dot de
Description:
------------
The function parse-ini-file cannot pars brackets in the values!


Reproduce code:
---------------
---
From manual page: function.parse-ini-file
---
Example:
[Main]
foobaa=()[]{}

Expected result:
----------------
Warning: Error parsing foo.ini on line 1
 in baa.php on line X

Actual result:
--------------
Her is the fix:
http://pastebin.com/f719040f1

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2009-07-23 11:04 UTC] jani@php.net
Thank you for taking the time to write to us, but this is not
a bug. Please double-check the documentation available at
http://www.php.net/manual/ and the instructions on how to report
a bug at http://bugs.php.net/how-to-report.php


 
PHP Copyright © 2001-2025 The PHP Group
All rights reserved.
Last updated: Sat Jul 12 15:01:35 2025 UTC