php bug. disable error reporting on session_start() called after session_destroy().
authortokul <tokul@7612ce4b-ef26-0410-bec9-ea0150e637f0>
Sun, 5 Feb 2006 09:01:10 +0000 (09:01 +0000)
committertokul <tokul@7612ce4b-ef26-0410-bec9-ea0150e637f0>
Sun, 5 Feb 2006 09:01:10 +0000 (09:01 +0000)
git-svn-id: https://svn.code.sf.net/p/squirrelmail/code/trunk/squirrelmail@10639 7612ce4b-ef26-0410-bec9-ea0150e637f0

src/login.php

index ad93468f333e0a8c3b3330f532eb887a5d1f73df..01a7bcec0752622129b74c916613eac8d3c1532b 100644 (file)
@@ -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');
 
 /**