diff options
author | Andrei Zmievski <andrei@php.net> | 1999-10-28 16:41:17 +0000 |
---|---|---|
committer | Andrei Zmievski <andrei@php.net> | 1999-10-28 16:41:17 +0000 |
commit | e921d0feab5e786b2e50eb32b349586b4547c769 (patch) | |
tree | 26e779bdda4d814b3b9b13e01c1cfcf165616f10 /ext/pcre/php_pcre.c | |
parent | 83c79bb154565843b98a0a6717559cb139b5bdd6 (diff) | |
download | php-git-e921d0feab5e786b2e50eb32b349586b4547c769.tar.gz |
Fix bug #2623.
Diffstat (limited to 'ext/pcre/php_pcre.c')
-rw-r--r-- | ext/pcre/php_pcre.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/ext/pcre/php_pcre.c b/ext/pcre/php_pcre.c index d17b493d36..ee8b6218fe 100644 --- a/ext/pcre/php_pcre.c +++ b/ext/pcre/php_pcre.c @@ -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++; } |