"MEMORY/MDL-18540,remove hard-coded php memory limit, added system setting for it, create a function reduce_memory_limit to reduce memroy limit and respect php.ini setting in the meanwhile"

This commit is contained in:
dongsheng
2009-03-26 01:36:16 +00:00
parent dfabc486c9
commit 307b92632b
8 changed files with 68 additions and 13 deletions
+1 -1
View File
@@ -1082,7 +1082,7 @@ function check_memory_limit() {
}
/// Otherwise, see if we can change it ourselves
@ini_set('memory_limit', '40M');
raise_memory_limit('40M');
return ((int)str_replace('M', '', get_memory_limit()) >= 40);
}