summaryrefslogtreecommitdiffstats
path: root/lib/debug.lib.php
diff options
context:
space:
mode:
authorKarl 'vollmerk' Vollmer <vollmer@ampache.org>2008-10-27 09:24:34 +0000
committerKarl 'vollmerk' Vollmer <vollmer@ampache.org>2008-10-27 09:24:34 +0000
commitf593f18131d6a0cbf30b558b208e86b9fc957f13 (patch)
treeaf665d7fb2f7ec17b1948c8d1146dd9a6deaba29 /lib/debug.lib.php
parent14019e88c5370df8251b8d9836ea5867b670af1c (diff)
downloadampache-f593f18131d6a0cbf30b558b208e86b9fc957f13.tar.gz
ampache-f593f18131d6a0cbf30b558b208e86b9fc957f13.tar.bz2
ampache-f593f18131d6a0cbf30b558b208e86b9fc957f13.zip
Commit, still no internet paying for it.. curse you free.fr
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