summaryrefslogtreecommitdiffstats
path: root/lib/debug.lib.php
diff options
context:
space:
mode:
Diffstat (limited to 'lib/debug.lib.php')
-rw-r--r--lib/debug.lib.php10
1 files changed, 10 insertions, 0 deletions
diff --git a/lib/debug.lib.php b/lib/debug.lib.php
index 680446bf..3459609c 100644
--- a/lib/debug.lib.php
+++ b/lib/debug.lib.php
@@ -199,12 +199,22 @@ function check_putenv() {
if (!ini_set(memory_limit,$new_limit)) {
return false;
}
+
+ // Make sure it actually worked
+ $current = ini_get('memory_limit');
+
+ if ($new_limit != $current) {
+ return false;
+ }
/* Check if safe mode is on */
if (ini_get('safe_mode')) {
return false;
}
+ // See if we can override the set_time_limit();
+
+
return true;
} // check_putenv