From: foobar Date: Thu, 3 Feb 2005 03:02:16 +0000 (+0000) Subject: MFH: Fixed bug #28804 (ini-file section parsing pattern is buggy). X-Git-Tag: php-5.0.4RC1~205 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=c3bd38ba9bb4ad52c5bf23c281c1ca8cc3bf9748;p=php MFH: Fixed bug #28804 (ini-file section parsing pattern is buggy). --- diff --git a/NEWS b/NEWS index 4d5e256ee6..c790a53288 100644 --- a/NEWS +++ b/NEWS @@ -87,6 +87,8 @@ PHP NEWS (Jani) - Fixed bug #28930 (PHP sources pick wrong header files generated by bison). (eggert at gnu dot org, Jani) +- Fixed bug #28804 (ini-file section parsing pattern is buggy). + (wendland at scan-plus dot de) - Fixed bug #28451 (corupt EXIF headers have unlimited recursive IFD directory entries). (Andrei) - Fixed bug #28444 (Cannot access undefined property for object with overloaded diff --git a/Zend/zend_ini_scanner.l b/Zend/zend_ini_scanner.l index 4a096f44df..7f23746e7a 100644 --- a/Zend/zend_ini_scanner.l +++ b/Zend/zend_ini_scanner.l @@ -116,7 +116,7 @@ NEWLINE ("\r"|"\n"|"\r\n") return CFG_FALSE; } -[[][^[]+[\]][ ]*{NEWLINE}? { +\[[^\]\[]+\][ ]*{NEWLINE}? { /* SECTION */ /* eat trailing ] and spaces */