diff options
author | James Meyer <james.meyer@operamail.com> | 2012-08-06 22:24:33 (GMT) |
---|---|---|
committer | James Meyer <james.meyer@operamail.com> | 2012-08-06 22:24:33 (GMT) |
commit | 401ad9311566b025a4544b4cf1622fdd93e05b9d (patch) | |
tree | 2cbf6e1780fe02815b58fdb146d276dbe4385175 /abs/core/apache/pcre_info.patch | |
parent | a9836c708d7c835f1caf63a56c45daef98bdb277 (diff) | |
download | linhes_pkgbuild-401ad9311566b025a4544b4cf1622fdd93e05b9d.zip linhes_pkgbuild-401ad9311566b025a4544b4cf1622fdd93e05b9d.tar.gz linhes_pkgbuild-401ad9311566b025a4544b4cf1622fdd93e05b9d.tar.bz2 |
apache 2.2.22
Diffstat (limited to 'abs/core/apache/pcre_info.patch')
-rw-r--r-- | abs/core/apache/pcre_info.patch | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/abs/core/apache/pcre_info.patch b/abs/core/apache/pcre_info.patch new file mode 100644 index 0000000..906a315 --- /dev/null +++ b/abs/core/apache/pcre_info.patch @@ -0,0 +1,22 @@ +--- httpd-2.2.22/server/util_pcre.c 2005-11-10 16:20:05.000000000 +0100 ++++ httpd-2.2.22/server/util_pcre.c 2012-02-08 11:23:56.273855663 +0100 +@@ -128,6 +128,7 @@ + const char *errorptr; + int erroffset; + int options = 0; ++int nsub; + + if ((cflags & AP_REG_ICASE) != 0) options |= PCRE_CASELESS; + if ((cflags & AP_REG_NEWLINE) != 0) options |= PCRE_MULTILINE; +@@ -136,8 +137,9 @@ + preg->re_erroffset = erroffset; + + if (preg->re_pcre == NULL) return AP_REG_INVARG; +- +-preg->re_nsub = pcre_info((const pcre *)preg->re_pcre, NULL, NULL); ++pcre_fullinfo((const pcre *)preg->re_pcre, NULL, ++ PCRE_INFO_CAPTURECOUNT, &nsub); ++preg->re_nsub = nsub; + return 0; + } + |