From e7aa5a8800ae5b57f7f97129da7e199def6012da Mon Sep 17 00:00:00 2001 From: moodler Date: Thu, 13 Sep 2007 06:42:49 +0000 Subject: [PATCH] Patch as suggested by Eloy in MDL-11237 to work around a nasty PHP bug in PHP 5.20 --- lib/setup.php | 4 ++++ 1 file changed, 4 insertions(+) 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'; -- 2.39.5