#47859 [Opn->Ver]: parse_ini_file() does not like asterisk (*) in key in the beginning
| From: | jani@php.net | Date: | Wed, 01 Apr 2009 10:52:52 +0000 |
| Subject: | #47859 [Opn->Ver]: parse_ini_file() does not like asterisk (*) in key in the beginning | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-135422@lists.php.net to get a copy of this message | ||
ID: 47859
Updated by: jani@php.net
Reported By: ce at beer dot com
-Status: Open
+Status: Verified
Bug Type: Scripting Engine problem
-Operating System:
+Operating System: *
-PHP Version: 5.3.0RC1
+PHP Version: 5.3CVS, 6CVS (2009-04-01)
Previous Comments:
------------------------------------------------------------------------
[2009-04-01 10:19:59] 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
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=47859&edit=1