From 07a52f9f576c00c7f6d5a35e84b740dc69f2ef92 Mon Sep 17 00:00:00 2001 From: tokul Date: Sun, 5 Feb 2006 09:01:10 +0000 Subject: [PATCH] php bug. disable error reporting on session_start() called after session_destroy(). git-svn-id: https://svn.code.sf.net/p/squirrelmail/code/trunk/squirrelmail@10639 7612ce4b-ef26-0410-bec9-ea0150e637f0 --- src/login.php | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/src/login.php b/src/login.php index ad93468f..01a7bcec 100644 --- a/src/login.php +++ b/src/login.php @@ -50,7 +50,13 @@ $base_uri = sqm_baseuri(); */ sqsession_destroy(); -sqsession_start(); +/** + * PHP bug. http://bugs.php.net/11643 (warning, spammed bug tracker) and + * http://bugs.php.net/13834 + * SID constant is not destroyed in PHP 4.1.2, 4.2.3 and maybe other + * versions. Produces warning on login page. Bug should be fixed only in 4.3.0 + */ +@sqsession_start(); header('Pragma: no-cache'); /** -- 2.25.1