"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:
+1
-1
@@ -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);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user