Project

General

Profile

Feature #14986 ยป patch_installtool_session_support.txt

Administrator Admin, 2006-08-12 14:54

 
Index: C:/develop/projects/typo3_4_0_1_svn/typo3_core/typo3/sysext/install/mod/class.tx_install.php
===================================================================
--- C:/develop/projects/typo3_4_0_1_svn/typo3_core/typo3/sysext/install/mod/class.tx_install.php (revision 1681)
+++ C:/develop/projects/typo3_4_0_1_svn/typo3_core/typo3/sysext/install/mod/class.tx_install.php (working copy)
@@ -1569,7 +1569,23 @@
",1);
// ???? If this option was set falsely you probably didn't see this page in the first place, but this option <strong>may spoil this configuration test</strong> when checking for such as ImageMagick executables.
} else $this->message($ext, 'open_basedir: off',"",-1);
-
+
+ /**
+ * Check Session Support
+ * No check possible if session support is availiable, intead check
+ * if session name is set, if not raise error as its likly to have
+ * no session support
+ */
+
+ if (ini_get('session.name')) {
+ $this->message($ext, 'PHP sessions availiable',"
+ <i>PHP Sessions availiabe</i>
+ Your PHP is compiled with session support or session support is available.
+
+ ",-1);
+ } else $this->message($ext, 'PHP Sessions not availiabe',
+ "Your PHP is not compiled with session support, or session support is disabled in you php.ini" .
+ "TYPO3 needs session support",3);
}
/**
    (1-1/1)