com php-src: fix #69628: complex GLOB_BRACE fails on Wi ndows: win32/glob.c
| From: | Anatol Belski | Date: | Wed, 13 May 2015 21:47:54 +0000 |
| Subject: | com php-src: fix #69628: complex GLOB_BRACE fails on Wi ndows: win32/glob.c | ||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-86848@lists.php.net to get a copy of this message | ||
Commit: e42aae1e9bf5e15d8114c8ae4b5e99cc6e555d9b
Author: Christoph M. Becker <cmbecker69@gmx.de> Wed, 13 May 2015 23:47:54 +0200
Parents: 43315f32e7f980a774b85ec6556fcfbb8c3507db
Branches: master
Link: http://git.php.net/?p=php-src.git;a=commitdiff;h=e42aae1e9bf5e15d8114c8ae4b5e99cc6e555d9b
Log:
fix #69628: complex GLOB_BRACE fails on Windows
Bugs:
https://bugs.php.net/69628
Changed paths:
M win32/glob.c
Diff:
diff --git a/win32/glob.c b/win32/glob.c
index 4388450..1541fcf 100644
--- a/win32/glob.c
+++ b/win32/glob..c
@@ -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;