diff options
author | Anatol Belski <ab@php.net> | 2018-09-18 14:16:06 +0200 |
---|---|---|
committer | Anatol Belski <ab@php.net> | 2018-09-21 15:54:14 +0200 |
commit | 91b2b6c65d544f39c45498ebafbab84b81d465b5 (patch) | |
tree | 0e95063199c06b57d48f370903bc765c7491c0c8 /ext/pcre/pcre2lib/pcre2_maketables.c | |
parent | 72231ed74746f09fb3096761b77cb5130309ca1e (diff) | |
download | php-git-91b2b6c65d544f39c45498ebafbab84b81d465b5.tar.gz |
Upgrade PCRE2 to 10.32
(cherry picked from commit d918e0776b5168aed2707b0ca500589844f0faa8)
Diffstat (limited to 'ext/pcre/pcre2lib/pcre2_maketables.c')
-rw-r--r-- | ext/pcre/pcre2lib/pcre2_maketables.c | 9 |
1 files changed, 1 insertions, 8 deletions
diff --git a/ext/pcre/pcre2lib/pcre2_maketables.c b/ext/pcre/pcre2lib/pcre2_maketables.c index 2c7ae84d86..537edba8c3 100644 --- a/ext/pcre/pcre2lib/pcre2_maketables.c +++ b/ext/pcre/pcre2lib/pcre2_maketables.c @@ -7,7 +7,7 @@ and semantics are as close as possible to those of the Perl 5 language. Written by Philip Hazel Original API code Copyright (c) 1997-2012 University of Cambridge - New API code Copyright (c) 2016 University of Cambridge + New API code Copyright (c) 2016-2018 University of Cambridge ----------------------------------------------------------------------------- Redistribution and use in source and binary forms, with or without @@ -141,13 +141,6 @@ for (i = 0; i < 256; i++) if (isdigit(i)) x += ctype_digit; if (isxdigit(i)) x += ctype_xdigit; if (isalnum(i) || i == '_') x += ctype_word; - - /* Note: strchr includes the terminating zero in the characters it considers. - In this instance, that is ok because we want binary zero to be flagged as a - meta-character, which in this sense is any character that terminates a run - of data characters. */ - - if (strchr("\\*+?{^.$|()[", i) != 0) x += ctype_meta; *p++ = x; } |