Browse Source

MFB51: Fixed bug #36046 (parse_ini_file() miscounts lines in multi-line

values).
migration/RELEASE_1_0_0
Ilia Alshanetsky 21 years ago
parent
commit
b0b79b138d
  1. 10
      Zend/zend_ini_scanner.l

10
Zend/zend_ini_scanner.l

@ -143,8 +143,18 @@ NEWLINE ("\r"|"\n"|"\r\n")
<INITIAL>["][^"]*["] {
char *p = yytext;
/* ENCAPSULATED TC_STRING */
while ((p = strpbrk(p, "\r\n"))) {
if (*p == '\r' && *(p + 1) == '\n') {
p++;
}
SCNG(lineno)++;
p++;
}
/* eat trailing " */
yytext[yyleng-1]=0;

Loading…
Cancel
Save