summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--inc/parser/lexer.php5
1 files changed, 5 insertions, 0 deletions
diff --git a/inc/parser/lexer.php b/inc/parser/lexer.php
index 88deb7fe9..cf892e0bc 100644
--- a/inc/parser/lexer.php
+++ b/inc/parser/lexer.php
@@ -113,6 +113,11 @@ class Doku_LexerParallelRegex {
}
if (! preg_match($this->_getCompoundedRegex(), $subject, $matches)) {
+ if(function_exists('preg_last_error')){
+ $err = preg_last_error();
+ if($err == 2) msg('A PCRE backtrack error occured. Try to increase the pcre.backtrack_limit in php.ini',-1);
+ }
+
$split = array($subject, "", "");
return false;
}