]> granicus.if.org Git - php/commitdiff
Fix bug #2623.
authorAndrei Zmievski <andrei@php.net>
Thu, 28 Oct 1999 16:41:17 +0000 (16:41 +0000)
committerAndrei Zmievski <andrei@php.net>
Thu, 28 Oct 1999 16:41:17 +0000 (16:41 +0000)
ext/pcre/php_pcre.c

index d17b493d369bd62c007129f842da082c0f4b102d..ee8b6218fe82a6ef8d65926a60726480eb6834da 100644 (file)
@@ -199,7 +199,8 @@ static pcre* _pcre_get_compiled_regex(char *regex, pcre_extra *extra, int *preg_
           found, display a warning. */
        pp = p;
        while (*pp != 0) {
-               if (*pp == delimiter && pp[-1] != '\\')
+               if (*pp == '\\' && pp[1] != 0) pp++;
+               else if (*pp == delimiter)
                        break;
                pp++;
        }