|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2004-07-06 15:55 UTC] sniper@php.net
[2004-12-13 01:33 UTC] sniper@php.net
[2005-02-03 04:02 UTC] sniper@php.net
|
|||||||||||||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Fri Nov 07 22:00:01 2025 UTC |
Description: ------------ The pattern for section in ini-files (as used in php.ini and each file used with parse_ini_file()) is wrong. It looks like (in Zend/zend_ini_scanner.l:140): <INITIAL>[[][^[]+[\]][ ]*{NEWLINE}? That means that the following example won't work: [section] var = "val" var2 = "]" var3 = "val3" Try to run this through parse_ini_file(). The pattern should look like: <INITIAL>\[[^\]]+\][ ]*{NEWLINE}? If you'd like to disallow brackets in section name, you could use the following pattern: <INITIAL>\[[^\]\[]+\][ ]*{NEWLINE}? Kind Regards, Joerg Wendland