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

Pull Requests

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-2025 The PHP Group
All rights reserved.
Last updated: Tue May 06 19:01:28 2025 UTC