From 40fe857bfb0c48ea6efdd90556284c2082da85c7 Mon Sep 17 00:00:00 2001 From: aoneil Date: Thu, 10 Jan 2008 02:50:57 +0000 Subject: [PATCH] #1352 - Better handling of memory limit git-svn-id: svn://svn.silverstripe.com/silverstripe/open/phpinstaller/trunk@47824 467b73ca-7a2a-4603-9d3b-597d59a354a9 --- install.php | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/install.php b/install.php index b3bc86d..2e92ea3 100644 --- a/install.php +++ b/install.php @@ -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 "
  • Creating '$template/_config.php'...
  • "; flush();