php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #47859 parse_ini_file() does not like asterisk (*) in key in the beginning
Submitted: 2009-04-01 10:19 UTC Modified: 2009-07-22 20:36 UTC
Votes:1
Avg. Score:5.0 ± 0.0
Reproduced:1 of 1 (100.0%)
Same Version:1 (100.0%)
Same OS:1 (100.0%)
From: ce at beer dot com Assigned:
Status: Closed Package: PHP options/info functions
PHP Version: 5.3CVS, 6CVS (2009-04-01) OS: *
Private report: No CVE-ID: None
View Add Comment Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
(description)
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: ce at beer dot com
New email:
PHP Version: OS:

 

 [2009-04-01 10:19 UTC] ce at beer dot com
Description:
------------
parse_ini_file no longer likes * (asterisk) in the beginning of the configuration keys.

Works just fine in PHP 5.2.5


it is a copy of http://bugs.php.net/bug.php?id=46347

but still the first part of the key cannot be *

Reproduce code:
---------------
Ini file with the following content:
[section]
*.part1.part2 = 1

PHP file:
<?php
parse_ini_file('test.ini');


Expected result:
----------------
ini file being parsed without any error messages


Actual result:
--------------
Warning: syntax error, unexpected '*' in test.ini on line 2
 in test.php on line 2



Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2009-05-19 15:59 UTC] shire@php.net
This bug has been fixed in CVS.

Snapshots of the sources are packaged every three hours; this change
will be in the next snapshot. You can grab the snapshot at
http://snaps.php.net/.
 
Thank you for the report, and for helping us make PHP better.


 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Sat Apr 27 14:01:30 2024 UTC