From 88460c017a06ce8865f1adcc8f70e511cf776e06 Mon Sep 17 00:00:00 2001 From: "Christoph M. Becker" Date: Sun, 31 Mar 2019 13:31:54 +0200 Subject: Fix #77827: preg_match does not ignore \r in regex flags --- ext/pcre/php_pcre.c | 1 + 1 file changed, 1 insertion(+) (limited to 'ext/pcre/php_pcre.c') diff --git a/ext/pcre/php_pcre.c b/ext/pcre/php_pcre.c index 4cdd8bf27c..2e827298a9 100644 --- a/ext/pcre/php_pcre.c +++ b/ext/pcre/php_pcre.c @@ -486,6 +486,7 @@ PHPAPI pcre_cache_entry* pcre_get_compiled_regex_cache(zend_string *regex) case ' ': case '\n': + case '\r': break; default: -- cgit v1.2.1