summaryrefslogtreecommitdiff
path: root/includes/parser/Parser.php
diff options
context:
space:
mode:
Diffstat (limited to 'includes/parser/Parser.php')
-rw-r--r--includes/parser/Parser.php3
1 files changed, 3 insertions, 0 deletions
diff --git a/includes/parser/Parser.php b/includes/parser/Parser.php
index 2abf1b93..d4f167c9 100644
--- a/includes/parser/Parser.php
+++ b/includes/parser/Parser.php
@@ -1481,6 +1481,9 @@ class Parser {
wfProfileIn( __METHOD__ );
$bits = preg_split( $this->mExtLinkBracketedRegex, $text, -1, PREG_SPLIT_DELIM_CAPTURE );
+ if ( $bits === false ) {
+ throw new MWException( "PCRE needs to be compiled with --enable-unicode-properties in order for MediaWiki to function" );
+ }
$s = array_shift( $bits );
$i = 0;