Commit 1ed3c738 authored by Joe Orton's avatar Joe Orton
Browse files

* server/util_pcre.c (ap_regexec): Fix --with-pcre build with older

versions of pcre.


git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@227189 13f79535-47bb-0310-9956-ffa450edef68
parent eca470af
Loading
Loading
Loading
Loading
+6 −0
Changes for server/util_pcre.c: 6 added lines, 0 removed lines.
Original line number Diff line number Diff line
@@ -213,9 +213,15 @@ else
    case PCRE_ERROR_BADMAGIC: return AP_REG_INVARG;
    case PCRE_ERROR_UNKNOWN_NODE: return AP_REG_ASSERT;
    case PCRE_ERROR_NOMEMORY: return AP_REG_ESPACE;
#ifdef PCRE_ERROR_MATCHLIMIT
    case PCRE_ERROR_MATCHLIMIT: return AP_REG_ESPACE;
#endif
#ifdef PCRE_ERROR_BADUTF8
    case PCRE_ERROR_BADUTF8: return AP_REG_INVARG;
#endif
#ifdef PCRE_ERROR_BADUTF8_OFFSET
    case PCRE_ERROR_BADUTF8_OFFSET: return AP_REG_INVARG;
#endif
    default: return AP_REG_ASSERT;
    }
  }