mirror of
https://github.com/php/php-src.git
synced 2024-11-23 18:04:36 +08:00
fix #69628: complex GLOB_BRACE fails on Windows
This commit is contained in:
parent
43315f32e7
commit
e42aae1e9b
@ -293,17 +293,19 @@ globexp2(ptr, pattern, pglob, rv)
|
||||
}
|
||||
|
||||
for (i = 0, pl = pm = ptr; pm <= pe; pm++) {
|
||||
const Char *pb;
|
||||
|
||||
switch (*pm) {
|
||||
case LBRACKET:
|
||||
/* Ignore everything between [] */
|
||||
for (pl = pm++; *pm != RBRACKET && *pm != EOS; pm++)
|
||||
for (pb = pm++; *pm != RBRACKET && *pm != EOS; pm++)
|
||||
;
|
||||
if (*pm == EOS) {
|
||||
/*
|
||||
* We could not find a matching RBRACKET.
|
||||
* Ignore and just look for RBRACE
|
||||
*/
|
||||
pm = pl;
|
||||
pm = pb;
|
||||
}
|
||||
break;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user