You are not logged in.

#1 2017-06-12 17:35:23

pstree
Member
From: Paris, France
Registered: 2013-02-24
Posts: 37

Apache uses wrong PCRE version [solved]

Hi,

I've tried using regexes in SQL queries, but apache returns the following error :

This version of PCRE is compiled without UTF support

But this is the output of pcretest :

$ pcre -C
PCRE version 8.40 2017-01-11
Compiled with
  8-bit support
  UTF-8 support
  16-bit support
  UTF-16 support
  32-bit support
  UTF-32 support
  Unicode properties support
  Just-in-time compiler support: x86 64bit (little endian + unaligned)
  Newline sequence is LF
  \R matches all Unicode newlines
  Internal link size = 2
  POSIX malloc threshold = 10
  Parentheses nest limit = 250
  Default match limit = 10000000
  Default recursion depth limit = 10000000
  Match recursion uses stack

So it seems that Apache is using another version of PCRE. How can I force him to use this one instead ?

Thanks for your help !

Last edited by pstree (2017-06-16 06:54:52)


: (){ : |:& };:

Offline

#2 2017-06-16 05:36:05

pstree
Member
From: Paris, France
Registered: 2013-02-24
Posts: 37

Re: Apache uses wrong PCRE version [solved]

So after some research, it seems I have to rebuild Apache with the option :

--with-pcre=/path/to/pcre

But how can I do that, since it's an official package that ships already compiled ?


: (){ : |:& };:

Offline

#3 2017-06-16 05:47:22

WorMzy
Forum Moderator
From: Scotland
Registered: 2010-06-16
Posts: 11,868
Website

Re: Apache uses wrong PCRE version [solved]


Sakura:-
Mobo: MSI MAG X570S TORPEDO MAX // Processor: AMD Ryzen 9 5950X @4.9GHz // GFX: AMD Radeon RX 5700 XT // RAM: 32GB (4x 8GB) Corsair DDR4 (@ 3000MHz) // Storage: 1x 3TB HDD, 6x 1TB SSD, 2x 120GB SSD, 1x 275GB M2 SSD

Making lemonade from lemons since 2015.

Offline

Board footer

Powered by FluxBB