#47859 [Ver->Csd]: parse_ini_file() does not like asterisk (*) in key in the beginning
| From: | shire@php.net | Date: | Tue, 19 May 2009 15:59:57 +0000 |
| Subject: | #47859 [Ver->Csd]: 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-137514@lists.php.net to get a copy of this message | ||
ID: 47859
Updated by: shire@php.net
Reported By: ce at beer dot com
-Status: Verified
+Status: Closed
Bug Type: Scripting Engine problem
Operating System: *
PHP Version: 5.3CVS, 6CVS (2009-04-01)
New Comment:
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.
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