Skip to content

Commit ab6e730

Browse files
committed
Merge branch 'PHP-8.3' into PHP-8.4
* PHP-8.3: Fix -Wuseless-escape warnings emitted by re2c (#19050)
2 parents 2aeefb1 + 258fbd6 commit ab6e730

File tree

4 files changed

+7
-6
lines changed

4 files changed

+7
-6
lines changed

NEWS

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ PHP NEWS
1111
. Fixed bug GH-18907 (Leak when creating cycle in hook). (ilutov)
1212
. Fix OSS-Fuzz #427814456. (nielsdos)
1313
. Fix OSS-Fuzz #428983568 and #428760800. (nielsdos)
14+
. Fixed bug GH-17204 -Wuseless-escape warnings emitted by re2c. (Peter Kokot)
1415

1516
- Curl:
1617
. Fix memory leaks when returning refcounted value from curl callback.

Zend/zend_ini_scanner.l

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -352,16 +352,16 @@ restart:
352352
/*!re2c
353353
re2c:yyfill:check = 0;
354354
LNUM [0-9]+
355-
DNUM ([0-9]*[\.][0-9]+)|([0-9]+[\.][0-9]*)
355+
DNUM ([0-9]*[.][0-9]+)|([0-9]+[.][0-9]*)
356356
NUMBER [-]?{LNUM}|{DNUM}
357357
ANY_CHAR (.|[\n\t])
358358
NEWLINE ("\r"|"\n"|"\r\n")
359359
TABS_AND_SPACES [ \t]
360360
WHITESPACE [ \t]+
361361
CONSTANT [a-zA-Z_][a-zA-Z0-9_]*
362-
LABEL_CHAR [^=\n\r\t;&|^$~(){}!"\[\]\x00]
362+
LABEL_CHAR [^=\n\r\t;&|^$~(){}!"[\]\x00]
363363
LABEL ({LABEL_CHAR}+)
364-
TOKENS [:,.\[\]"'()&|^+-/*=%$!~<>?@{}]
364+
TOKENS [:,.[\]"'()&|^+-/*=%$!~<>?@{}]
365365
OPERATORS [&|^~()!]
366366
DOLLAR_CURLY "${"
367367

Zend/zend_language_scanner.l

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1813,11 +1813,11 @@ OPTIONAL_WHITESPACE_OR_COMMENTS ({WHITESPACE}|{MULTI_LINE_COMMENT}|{SINGLE_LINE_
18131813
RETURN_TOKEN(T_MUL_EQUAL);
18141814
}
18151815

1816-
<ST_IN_SCRIPTING>"*\*" {
1816+
<ST_IN_SCRIPTING>"**" {
18171817
RETURN_TOKEN(T_POW);
18181818
}
18191819

1820-
<ST_IN_SCRIPTING>"*\*=" {
1820+
<ST_IN_SCRIPTING>"**=" {
18211821
RETURN_TOKEN(T_POW_EQUAL);
18221822
}
18231823

sapi/phpdbg/phpdbg_lexer.l

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ T_IF 'if'
7777
T_RUN 'run'
7878
T_RUN_SHORT "r"
7979
WS [ \r\t]+
80-
DIGITS [-]?[0-9\.]+
80+
DIGITS [-]?[0-9.]+
8181
ID [^ \r\n\t:#\000]+
8282
GENERIC_ID ([^ \r\n\t:#\000"']|":\\")+|["]([^\n\000"\\]|"\\\\"|"\\"["])+["]|[']([^\n\000'\\]|"\\\\"|"\\"['])+[']
8383
ADDR [0][x][a-fA-F0-9]+

0 commit comments

Comments
 (0)