From: tokul Date: Sun, 5 Feb 2006 09:01:10 +0000 (+0000) Subject: php bug. disable error reporting on session_start() called after session_destroy(). X-Git-Url: https://vcs.fsf.org/?p=squirrelmail.git;a=commitdiff_plain;h=07a52f9f576c00c7f6d5a35e84b740dc69f2ef92;hp=d88941c7b900f87e04674c9d61ebcf9dff8d44eb 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 --- 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'); /**