]> git.mjollnir.org Git - moodle.git/commitdiff
Patch as suggested by Eloy in MDL-11237 to work around a nasty PHP bug in PHP 5.20
authormoodler <moodler>
Thu, 13 Sep 2007 06:42:49 +0000 (06:42 +0000)
committermoodler <moodler>
Thu, 13 Sep 2007 06:42:49 +0000 (06:42 +0000)
lib/setup.php

index bba85068bb3d32cad0c3b224c07ca07b4589b5af..aabf33d468ca544aea69bfa62b337548a6583af6 100644 (file)
@@ -387,6 +387,10 @@ global $HTTPSPAGEREQUIRED;
 
     @ini_set('arg_separator.output', '&amp;');
 
+/// 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';