- Fix bug where memory_limit = -1 wasn't handled properly

pull/1/head
alecpl 13 years ago
parent d63244ebf4
commit ff2d88a7ab

@ -1,6 +1,7 @@
CHANGELOG Roundcube Webmail
===========================
- Fix bug where memory_limit = -1 wasn't handled properly
- Support LDAP RFC2256's country object class read/write (#1488123)
- Upgraded to jQuery 1.7.2
- Image resize with GD extension (#1488383)

@ -1611,7 +1611,7 @@ function rcmail_mem_check($need)
$mem_limit = parse_bytes(ini_get('memory_limit'));
$memory = function_exists('memory_get_usage') ? memory_get_usage() : 16*1024*1024; // safe value: 16MB
return $mem_limit && $memory + $need > $mem_limit ? false : true;
return $mem_limit > 0 && $memory + $need > $mem_limit ? false : true;
}

Loading…
Cancel
Save