Thread:Project:Support desk/MediaWiki v1.19.1 installation: Compilation failed: support for \P, \p, and \X has not been compiled/reply (5)

We do the following: 793        protected function envCheckPCRE { 794                if ( !function_exists( 'preg_match' ) ) { 795                        $this->showError( 'config-pcre' ); 796                        return false; 797                } 798                 wfSuppressWarnings; 799                $regexd = preg_replace( '/[\x{0430}-\x{04FF}]/iu', '', '-АБВГД-' ); 800                wfRestoreWarnings; 801                if ( $regexd != '--' ) { 802                        $this->showError( 'config-pcre-no-utf8' ); 803                        return false; 804                } 805                 return true; 806        }

Note: pcretest is not neccesarily compiled with the same version of PCRE as php, so we wouldn't want to do a shell callout.

A brief skim of the man page seems to indicate PCRE can be compiled with  but not   which I think would make the above test pass, but MediaWiki fall on its face. Hence the above test needs to be improved.