Skip to content
Snippets Groups Projects
Commit 5467607f authored by Andreas Gohr's avatar Andreas Gohr
Browse files

try to warn about pcre.backtrack_limit errors FS#1258

darcs-hash:20080118214138-7ad00-86962cd0413db95ea19383c4579b3240ad3c4301.gz
parent ece639c7
No related branches found
No related tags found
No related merge requests found
......@@ -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;
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment