parse_ini_file() does not like asterisk (*) in key
| Bug #46347 | parse_ini_file() does not like asterisk (*) in key | ||||
|---|---|---|---|---|---|
| Submitted: | 2008-10-20 19:40 UTC | Modified: | 2009-07-22 20:36 UTC | ||
| From: | duke at masendav dot com | Assigned: | scottmac (profile) | ||
| Status: | Closed | Package: | PHP options/info functions | ||
| PHP Version: | 5.3CVS-2008-11-11 | OS: | * | ||
| Private report: | No | CVE-ID: | None | ||
[2008-10-20 19:40 UTC] duke at masendav dot com
Description:
------------
parse_ini_file no longer likes * (asterisk) in configuration keys.
Works just fine in PHP 5.2.5
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 commits
[2008-10-20 20:45 UTC] jani@php.net
[2008-10-20 21:01 UTC] duke at masendav dot com
[2008-12-24 13:58 UTC] scottmac@php.net
[2009-01-01 11:57 UTC] jani@php.net
[2009-01-01 23:10 UTC] nlopess@php.net
[2009-02-02 19:25 UTC] nlopess@php.net