From 5812134c2a4569cf14c5173272411c5569ae5044 Mon Sep 17 00:00:00 2001
From: till <till@php.net>
Date: Fri, 01 Feb 2008 18:07:49 -0500
Subject: [PATCH] * fixed #1484437 * also added it to check.php

---
 INSTALL   |    1 +
 check.php |   24 +++++++++++++++++++++++-
 .htaccess |    2 ++
 3 files changed, 26 insertions(+), 1 deletions(-)

diff --git a/.htaccess b/.htaccess
index 4d5bb3d..e8e090d 100644
--- a/.htaccess
+++ b/.htaccess
@@ -8,6 +8,7 @@
   php_value	upload_max_filesize	5M
   php_value	post_max_size	6M
   php_value memory_limit	64M
+  php_value session.auto_start 1
 </IfModule>
 
 <IfModule mod_php5.c>
@@ -17,6 +18,7 @@
   php_value	upload_max_filesize	5M
   php_value	post_max_size	6M
   php_value memory_limit	64M
+  php_value session.auto_start 1
 </IfModule>
 
 <FilesMatch "(\.inc|\~)$">
diff --git a/INSTALL b/INSTALL
index 6177611..b68db56 100644
--- a/INSTALL
+++ b/INSTALL
@@ -20,6 +20,7 @@
    - error_reporting E_ALL & ~E_NOTICE (or lower)
    - file_uploads on (for attachment upload features)
    - memory_limit (increase as suitable to support large attachments)
+   - session.auto_start needs to be off/0
 * PHP compiled with Open SSL to connect to IMAPS and to use the spell checker
 * A MySQL or PostgreSQL database engine or the SQLite extension for PHP
 * One of the above databases with permission to create tables
diff --git a/check.php b/check.php
index 4b8e278..865ba7a 100644
--- a/check.php
+++ b/check.php
@@ -66,7 +66,7 @@
     } else {
         echo 'NOT OK';
     }
-    echo "<br />";
+    echo '<br />';
 }
 
 echo '<h3>Check supplied DB settings</h3>';
@@ -82,7 +82,29 @@
     } else {
         echo 'NOT OK';
     }
+    echo '<br />';
 } else {
     echo 'Could not open db.inc.php config file, or file is empty.<br />';
 }
+
+echo '<h3>Checking .ini settings</h3>';
+
+$auto_start   = ini_get('session.auto_start');
+$file_uploads = ini_get('file_uploads');
+
+echo "session.auto_start: ";
+if ($auto_start == 1) {
+    echo 'NOT OK';
+} else {
+    echo 'OK';
+}
+echo '<br />';
+
+echo "file_uploads: ";
+if ($file_uploads == 1) {
+    echo 'OK';
+} else {
+    echo 'NOT OK';
+}
+echo '<br />';
 ?>

--
Gitblit v1.9.1