PHP errors: Compilation failed: this version of PCRE is not compiled with PCRE_UTF8 support
Issue
- The following PHP errors are observed in logs while trying to access a
dokuwikiweb page.
[Thu Mar 29 14:19:45 2012] [error] [client 192.168.0.12] PHP Warning: preg_replace()
[<a href='function.preg-replace'>function.preg-replace</a>]: Compilation failed: this
version of PCRE is not compiled with PCRE_UTF8 support at offset 0 in /web/docs/dokuw
iki/inc/utf8.php on line 422, referer: https://test.htmlserver.com/dokuwiki/doku.php
- The above error message reports that
PHPis not compiled withPCRE_UTF8support, but thepcretest -Ccommand output shows thatPCREis compiled withUTF-8support:
$ pcretest -C
PCRE version 6.6 06-Feb-2006
Compiled with
UTF-8 support <------
Unicode properties support
Newline character is LF
Internal link size = 2
POSIX malloc threshold = 10
Default match limit = 10000000
Default recursion depth limi
Environment
Red Hat Enterprise Linux 5.8
Third party Apache httpd package (2.2.22)
php-5.1.6-32.el5.x86_64
pcre-6.6-6.el5_6.1
Subscriber exclusive content
A Red Hat subscription provides unlimited access to our knowledgebase of over 48,000 articles and solutions.
Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.
