Browse Source

php bug. disable error reporting on session_start() called after session_destroy().

tokul 19 năm trước cách đây
mục cha
commit
8f7c2d7b06
1 tập tin đã thay đổi với 7 bổ sung1 xóa
  1. 7 1
      src/login.php

+ 7 - 1
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');
 
 /**