From: moodler Date: Thu, 13 Sep 2007 06:42:49 +0000 (+0000) Subject: Patch as suggested by Eloy in MDL-11237 to work around a nasty PHP bug in PHP 5.20 X-Git-Url: http://git.mjollnir.org/gw?a=commitdiff_plain;h=e7aa5a8800ae5b57f7f97129da7e199def6012da;p=moodle.git Patch as suggested by Eloy in MDL-11237 to work around a nasty PHP bug in PHP 5.20 --- diff --git a/lib/setup.php b/lib/setup.php index bba85068bb..aabf33d468 100644 --- a/lib/setup.php +++ b/lib/setup.php @@ -387,6 +387,10 @@ global $HTTPSPAGEREQUIRED; @ini_set('arg_separator.output', '&'); +/// Work around for a PHP bug see MDL-11237 + + @ini_set('pcre.backtrack_limit', 20971520); // 20 MB + /// Location of standard files $CFG->wordlist = $CFG->libdir .'/wordlist.txt';