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
 [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

Add a Patch

Pull Requests

Add a Pull Request

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-2024 The PHP Group
All rights reserved.
Last updated: Wed Apr 24 16:01:31 2024 UTC