From:             ce at beer dot com
Operating system: 
PHP version:      5.3.0RC1
PHP Bug Type:     Scripting Engine problem
Bug description:  parse_ini_file() does not like asterisk (*) in key in the 
beginning

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 bug report at http://bugs.php.net/?id=47859&edit=1
-- 
Try a CVS snapshot (PHP 5.2):        
http://bugs.php.net/fix.php?id=47859&r=trysnapshot52
Try a CVS snapshot (PHP 5.3):        
http://bugs.php.net/fix.php?id=47859&r=trysnapshot53
Try a CVS snapshot (PHP 6.0):        
http://bugs.php.net/fix.php?id=47859&r=trysnapshot60
Fixed in CVS:                        
http://bugs.php.net/fix.php?id=47859&r=fixedcvs
Fixed in CVS and need be documented: 
http://bugs.php.net/fix.php?id=47859&r=needdocs
Fixed in release:                    
http://bugs.php.net/fix.php?id=47859&r=alreadyfixed
Need backtrace:                      
http://bugs.php.net/fix.php?id=47859&r=needtrace
Need Reproduce Script:               
http://bugs.php.net/fix.php?id=47859&r=needscript
Try newer version:                   
http://bugs.php.net/fix.php?id=47859&r=oldversion
Not developer issue:                 
http://bugs.php.net/fix.php?id=47859&r=support
Expected behavior:                   
http://bugs.php.net/fix.php?id=47859&r=notwrong
Not enough info:                     
http://bugs.php.net/fix.php?id=47859&r=notenoughinfo
Submitted twice:                     
http://bugs.php.net/fix.php?id=47859&r=submittedtwice
register_globals:                    
http://bugs.php.net/fix.php?id=47859&r=globals
PHP 4 support discontinued:          http://bugs.php.net/fix.php?id=47859&r=php4
Daylight Savings:                    http://bugs.php.net/fix.php?id=47859&r=dst
IIS Stability:                       
http://bugs.php.net/fix.php?id=47859&r=isapi
Install GNU Sed:                     
http://bugs.php.net/fix.php?id=47859&r=gnused
Floating point limitations:          
http://bugs.php.net/fix.php?id=47859&r=float
No Zend Extensions:                  
http://bugs.php.net/fix.php?id=47859&r=nozend
MySQL Configuration Error:           
http://bugs.php.net/fix.php?id=47859&r=mysqlcfg

Reply via email to