Non-DA Related: PCRE with UTF8 support

LawsHosting

Verified User
Joined
Sep 13, 2008
Messages
2,371
Location
London UK
Ok, have a non-DA Debian 6 server for testing PHP5.4.......

Have compiled from source Apache 2.2.x & PHP 5.4.x with the compile options based upon CB1.2....

All ok, except,
Warning: preg_match(): Compilation failed: this version of PCRE is not compiled with PCRE_UTF8 support at offset 0 in blah
/usr/local/bin/pcretest -C gives:
PCRE version 8.33 2013-05-28
Compiled with
8-bit support
UTF-8 support
Unicode properties support
No just-in-time compiler support
Newline sequence is LF
\R matches all Unicode newlines
Internal link size = 2
POSIX malloc threshold = 10
Default match limit = 10000000
Default recursion depth limit = 10000000
Match recursion uses stack
and phpinfo() gives:
pcre
PCRE (Perl Compatible Regular Expressions) Support enabled
PCRE Library Version 8.33 2013-05-28

I'm not sure what's wrong.. Googled and Googled and just find you should use --enable-utf8 --enable-unicode-properties when compiling pcre, which I did.

It's driving me mad :D
 
Swtiching to the bundled version of PCRE fixes the problem. Just remove the following from the configure.php* file:
Code:
--with-pcre-regex=/usr/local \
 
Back
Top