From 133b5929a12c9b9df06428890b994639b85fac76 Mon Sep 17 00:00:00 2001 From: skodak Date: Sun, 15 Feb 2009 19:02:50 +0000 Subject: [PATCH] MDL-18253 hopefully fixed weird float precision that breaks upgrade and gradebook --- lib/setup.php | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/lib/setup.php b/lib/setup.php index 12cbb1eee2..7eac4a0d55 100644 --- a/lib/setup.php +++ b/lib/setup.php @@ -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() -- 2.39.5