#1352 - Better handling of memory limit

git-svn-id: svn://svn.silverstripe.com/silverstripe/open/phpinstaller/trunk@47824 467b73ca-7a2a-4603-9d3b-597d59a354a9
This commit is contained in:
aoneil 2008-01-10 02:50:57 +00:00
parent 51865bf9d7
commit 40fe857bfb
1 changed files with 1 additions and 4 deletions

View File

@ -182,7 +182,6 @@ class InstallRequirements {
$mem = $this->getPHPMemory();
if($mem < (32 * 1024 * 1024)) {
$_SESSION['forcemem'] = true;
ini_set('memory_limit', '32M');
$mem = $this->getPHPMemory();
$testDetails[3] = ini_get("memory_limit");
@ -589,9 +588,7 @@ class Installer extends InstallRequirements {
// downloaded from http://www.silverstripe.com/cms-themes-and-skin
SSViewer::set_theme('blackcandy');
PHP;
}
$mem = $_SESSION['forcemem'] ? "ini_set('memory_limit', '32M');" : '';
}
echo "<li>Creating '$template/_config.php'...</li>";
flush();