Get sapphire to self-allocate at least 64M of memory, if possible.

git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/sapphire/trunk@65778 467b73ca-7a2a-4603-9d3b-597d59a354a9
This commit is contained in:
Sam Minnee 2008-11-13 02:07:22 +00:00
parent 1458d5b973
commit 2f25dda9de

View File

@ -139,10 +139,10 @@ default:
$memory = round($memString);
}
// Check we have at least 32M
if ($memory < (32 * 1024 * 1024)) {
// Check we have at least 64M
if ($memory < (64 * 1024 * 1024)) {
// Increase memory limit
ini_set('memory_limit', '32M');
ini_set('memory_limit', '64M');
}
///////////////////////////////////////////////////////////////////////////////