go to bug id or search bugs for
parse_ini_file no longer likes * (asterisk) in configuration keys.
Works just fine in PHP 5.2.5
Ini file with the following content:
part1.*.part2 = 1
ini file being parsed without any error messages
Warning: syntax error, unexpected '*' in test.ini on line 2
in test.php on line 2
Add a Patch
Add a Pull Request
Why should it like it? That looks like a bug that got fixed by the
More like undocumented feature then. Nothing at http://www.php.net/parse_ini_file says that * cannot be used inside keys. So we are using it in a few in-house applications and this came as unpleasant surprise.
We can of course implement a different solution, if you really consider the current (5.2) behaviour bug.
In which case it would be nice to have a better explanation in parse_ini_file documentation with regard to what is considered a valid syntax and what not.
Jani, this wasn't broken by any of the re2c stuff.
The changes you made to zend_ini_scanner.l revision 1.48 are the cause.
I don't know how to allow literal * in re2c. (\* did not work)
And I don't have spare time to debug this. Ask Pierre if he has.
jani: try [*] or "*" to match a single '*' char
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
Thank you for the report, and for helping us make PHP better.