From 703e0370905bc432aa26d71803b3081851e99230 Mon Sep 17 00:00:00 2001 From: Anatol Belski Date: Wed, 14 Feb 2018 13:44:38 +0100 Subject: Upgrade bundled PCRE2 to 10.31 --- ext/pcre/pcre2lib/pcre2_pattern_info.c | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'ext/pcre/pcre2lib/pcre2_pattern_info.c') diff --git a/ext/pcre/pcre2lib/pcre2_pattern_info.c b/ext/pcre/pcre2lib/pcre2_pattern_info.c index 540707b225..906e9198f5 100644 --- a/ext/pcre/pcre2lib/pcre2_pattern_info.c +++ b/ext/pcre/pcre2lib/pcre2_pattern_info.c @@ -76,6 +76,7 @@ if (where == NULL) /* Requests field length */ case PCRE2_INFO_BSR: case PCRE2_INFO_CAPTURECOUNT: case PCRE2_INFO_DEPTHLIMIT: + case PCRE2_INFO_EXTRAOPTIONS: case PCRE2_INFO_FIRSTCODETYPE: case PCRE2_INFO_FIRSTCODEUNIT: case PCRE2_INFO_HASBACKSLASHC: @@ -144,6 +145,10 @@ switch(what) if (re->limit_depth == UINT32_MAX) return PCRE2_ERROR_UNSET; break; + case PCRE2_INFO_EXTRAOPTIONS: + *((uint32_t *)where) = re->extra_options; + break; + case PCRE2_INFO_FIRSTCODETYPE: *((uint32_t *)where) = ((re->flags & PCRE2_FIRSTSET) != 0)? 1 : ((re->flags & PCRE2_STARTLINE) != 0)? 2 : 0; -- cgit v1.2.1