Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

BUG: Fix increase_memory_limit_to() to reduce installation errors.

increase_memory_limit_to() was broken a while ago, and this causes a lot of problems for people trying to install on environments where the memory limit is 32M.
  • Loading branch information...
commit 6ef4f9ad3fafb3ecce93bf6f49270cf6960ce597 1 parent 2a3d387
Sam Minnée sminnee authored
Showing with 2 additions and 1 deletion.
  1. +2 −1  core/Core.php
3  core/Core.php
View
@@ -409,7 +409,8 @@ function increase_memory_limit_to($memoryLimit = -1) {
// Check hard maximums
$max = get_increase_memory_limit_max();
- if($max != -1 && translate_memstring($memoryLimit) > translate_memstring($max)) return false;
+
+ if($max && $max != -1 && trANSLATE_MEMSTRING($memoryLimit) > translate_memstring($max)) return false;
// Increase the memory limit if it's too low
if($memoryLimit == -1 || translate_memstring($memoryLimit) > translate_memstring($curLimit)) {
Please sign in to comment.
Something went wrong with that request. Please try again.