On 28/12/2021 08:25, Sebastiaan Couwenberg wrote:
On Sun, 21 Nov 2021 17:17:32 +0000 Matthew Vernon wrote:
On 19/11/2021 21:46, Yadd wrote:
> Sadly pcre2 does not provide /usr/bin/pcre-config, I'm unable to do
this
> change
Well, there is pcre2-config, but that's a little beside the point -
pcre2 is not a drop-in replacement for pcre, so it is likely some code
work will be required, probably by upstream.
There is support for pcre2 on trunk:
https://github.com/apache/httpd/blob/trunk/include/ap_regex.h
https://github.com/apache/httpd/blob/trunk/server/util_pcre.c
See also:
https://helperbyte.com/questions/457338/how-to-make-pcre2-support-for-apache-24
Kind Regards,
Bas
Thanks,
I still have a problem with this part of the patch
@@ -115,7 +127,7 @@
AP_DECLARE(void) ap_regfree(ap_regex_t *preg)
{
- (pcre_free)(preg->re_pcre);
+ pcre2_code_free(preg->re_pcre);
}
I don't find any pcre2_code_free function, there are many pcre2*_free
functions, which one is the good ?