From d39cefddfdb28f49403023a5a89a8c59d0606134 Mon Sep 17 00:00:00 2001 From: sharvey Date: Tue, 21 Dec 2010 09:30:00 +0000 Subject: [PATCH] ENHANCEMENT Installer now checks for magic_quotes_gpc being turned off. This option turned on can cause issues with serialized data in cookies when unserializing (from r115264) git-svn-id: svn://svn.silverstripe.com/silverstripe/open/phpinstaller/branches/2.4@115265 467b73ca-7a2a-4603-9d3b-597d59a354a9 --- install.php | 1 + 1 file changed, 1 insertion(+) diff --git a/install.php b/install.php index b4485e1..7728e5c 100644 --- a/install.php +++ b/install.php @@ -383,6 +383,7 @@ class InstallRequirements { } $this->suggestPHPSetting('asp_tags', array(''), array('PHP Configuration', 'asp_tags option turned off', 'This should be turned off as it can cause issues with SilverStripe')); + $this->suggestPHPSetting('magic_quotes_gpc', array(''), array('PHP Configuration', 'magic_quotes_gpc option turned off', 'This should be turned off, as it can cause issues with cookies. More specifically, unserializing data stored in cookies.')); // Check memory allocation $this->requireMemory(32*1024*1024, 64*1024*1024, array("PHP Configuration", "Memory allocated (PHP config option 'memory_limit')", "SilverStripe needs a minimum of 32M allocated to PHP, but recommends 64M.", ini_get("memory_limit")));