(bug 38249) No PCRE unicode causes installer to spew giberish
authorBrian Wolff <bawolff+wn@gmail.com>
Sun, 19 Aug 2012 17:44:00 +0000 (14:44 -0300)
committerCatrope <roan.kattouw@gmail.com>
Wed, 22 Aug 2012 01:35:17 +0000 (18:35 -0700)
commit5a6f82c47f414e5f5a71f59ac49f840015d4ad71
tree898688596d154dee15d9bdda08f2c6d6ccb5e8fe
parent876128f8c9f0ce6a8424336fd9374f29b5e6a001
(bug 38249) No PCRE unicode causes installer to spew giberish

If PHP's PCRE is not compiled with unicode property support, this causes
the regexes used by the parser to not compile, causing the parser to
output giberish. Its been reported that the default PHP package for
cent os has PCRE in such a config.

As a result the installer will output total giberish. The user has
no idea what went wrong because there is no meaningful output.

To counter that, cause Parser to throw an exception in that case.
It seemed easier than figuring out how to convince the installer
not to parse the environment check. For completeness sake though
I fixed the PCRE environment check to adequetely check for PCRE
not having unicode support.

This should be backported to 1.19 since there are quite a few
complaints about the issue on project:Support_desk. /me has
no idea what the procedure for that is in our new git world

Change-Id: Idb1658be4ee6203a55740450e335f570a616671c
RELEASE-NOTES-1.20
includes/installer/Installer.php
includes/parser/Parser.php