Page MenuHomePhabricator

Check for PCRE UTF8 support in the installer
Closed, ResolvedPublic

Description

Author: Bryan.TongMinh

Description:
Some users appear to have a PCRE that does not support utf8. This causes among others problems like "Warning: preg_replace() [function.preg-replace]: Compilation failed: this version of PCRE is not compiled with PCRE_UTF8 support at offset 0 in includes/Title.php on line 2285". The installer should explicitly check for this, rather than failing with a nasty PHP warning.


Version: unspecified
Severity: enhancement

Details

Reference
bz26297

Event Timeline

bzimport raised the priority of this task from to Medium.Nov 21 2014, 11:20 PM
bzimport set Reference to bz26297.
bzimport added a subscriber: Unknown Object (MLST).

(In reply to comment #0)

Some users appear to have a PCRE that does not support utf8. This causes among
others problems like "Warning: preg_replace() [function.preg-replace]:
Compilation failed: this version of PCRE is not compiled with PCRE_UTF8 support
at offset 0 in includes/Title.php on line 2285". The installer should
explicitly check for this, rather than failing with a nasty PHP warning.

I believe Installer::envCheckPCRE() handles this :)

Bryan.TongMinh wrote:

Is that new in 1.17?

(In reply to comment #2)

Is that new in 1.17?

Of course :p