com php-src: fix #69628: complex GLOB_BRACE fails on Wi ndows: win32/glob.c

From: Date: Thu, 21 May 2015 07:44:15 +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-86851@lists.php.net to get a copy of this message
Commit: 8c6e8e787023e0a5fb43a9fad98e454a222fb3d5 Author: Christoph M. Becker <cmbecker69@gmx.de> Wed, 13 May 2015 23:47:54 +0200 Committer: Anatol Belski <ab@php.net> Thu, 21 May 2015 09:44:15 +0200 Parents: 90aee01c85c8958f2bf7f89660c0b1a446bcb6eb Branches: PHP-5.5 PHP-5.6 master Link: http://git.php.net/?p=php-src.git;a=commitdiff;h=8c6e8e787023e0a5fb43a9fad98e454a222fb3d5 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 8111dab..a61c4f3 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;

« previous php.cvs (#86851) next »