MDL-18253 hopefully fixed weird float precision that breaks upgrade and gradebook
authorskodak <skodak>
Sun, 15 Feb 2009 19:02:50 +0000 (19:02 +0000)
committerskodak <skodak>
Sun, 15 Feb 2009 19:02:50 +0000 (19:02 +0000)
lib/setup.php

index 12cbb1eee2ecb757302b78c741a7b8364d05b868..7eac4a0d55e0510277f2f700fa777b20c95ac43a 100644 (file)
@@ -100,6 +100,10 @@ global $SCRIPT;
         }
     }
 
+/// sometimes default PHP settings are borked on shared hosting servers, I wonder why they have to do that??
+    @ini_set('precision', 14); // needed for upgrades and gradebook
+
+
 /// The current directory in PHP version 4.3.0 and above isn't necessarily the
 /// directory of the script when run from the command line. The require_once()
 /// would fail, so we'll have to chdir()