MDL-18253 hopefully fixed weird float precision that breaks upgrade and gradebook; backported from HEAD

This commit is contained in:
skodak
2009-02-15 19:03:18 +00:00
parent a5886c1a26
commit f01be9f366
+4
View File
@@ -89,6 +89,10 @@ global $HTTPSPAGEREQUIRED;
die;
}
/// 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
/// store settings from config.php in array in $CFG - we can use it later to detect problems and overrides
$CFG->config_php_settings = (array)$CFG;