MDL-18253 hopefully fixed weird float precision that breaks upgrade and gradebook

This commit is contained in:
skodak
2009-02-15 19:02:50 +00:00
parent f2cbf2dc1e
commit 133b5929a1
+4
View 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()