[evolvis-commits] r18308: add patch to suppress a warning about session_start() being called↵ twice in the PHP error log (MediaWiki’s was already suppressed in↵ the surrounding code) as well

mirabilos at evolvis.org mirabilos at evolvis.org
Wed Apr 11 11:16:27 CEST 2012


Author: mirabilos
Date: 2012-04-11 11:16:26 +0200 (Wed, 11 Apr 2012)
New Revision: 18308

Added:
   trunk/mediawiki/debian/patches/suppress_warnings.patch
Modified:
   trunk/mediawiki/debian/changelog
   trunk/mediawiki/debian/patches/series
Log:
add patch to suppress a warning about session_start() being called
twice in the PHP error log (MediaWiki’s was already suppressed in
the surrounding code) as well

Modified: trunk/mediawiki/debian/changelog
===================================================================
--- trunk/mediawiki/debian/changelog	2012-04-11 09:16:25 UTC (rev 18307)
+++ trunk/mediawiki/debian/changelog	2012-04-11 09:16:26 UTC (rev 18308)
@@ -1,3 +1,11 @@
+mediawiki (1:1.15.4-3) UNRELEASED; urgency=low
+
+  * debian/patches/suppress_warnings.patch: new, suppress warnings
+    about session_start() being called twice also in the PHP error
+    log, not just MediaWiki’s, for example run from FusionForge
+
+ -- Thorsten Glaser <tg at mirbsd.de>  Wed, 28 Jul 2010 11:51:44 +0200
+
 mediawiki (1:1.15.4-2) unstable; urgency=low
 
   [ Thorsten Glaser ]

Modified: trunk/mediawiki/debian/patches/series
===================================================================
--- trunk/mediawiki/debian/patches/series	2012-04-11 09:16:25 UTC (rev 18307)
+++ trunk/mediawiki/debian/patches/series	2012-04-11 09:16:26 UTC (rev 18308)
@@ -4,3 +4,4 @@
 detect_invalid_titles.patch
 add_rss_guid.patch
 backup_documentation.patch
+suppress_warnings.patch

Added: trunk/mediawiki/debian/patches/suppress_warnings.patch
===================================================================
--- trunk/mediawiki/debian/patches/suppress_warnings.patch	                        (rev 0)
+++ trunk/mediawiki/debian/patches/suppress_warnings.patch	2012-04-11 09:16:26 UTC (rev 18308)
@@ -0,0 +1,16 @@
+$Id$
+
+Suppress warnings from being run within FusionForge’s gforge-plugin-mediawiki
+
+diff -pruN mediawiki-1.15.4~/includes/GlobalFunctions.php mediawiki-1.15.4/includes/GlobalFunctions.php
+--- mediawiki-1.15.4~/includes/GlobalFunctions.php	2009-03-25 03:07:09.000000000 +0100
++++ mediawiki-1.15.4/includes/GlobalFunctions.php	2010-07-28 11:46:06.000000000 +0200
+@@ -2678,7 +2678,7 @@ function wfSetupSession() {
+ 	}
+ 	session_cache_limiter( 'private, must-revalidate' );
+ 	wfSuppressWarnings();
+-	session_start();
++	@session_start();
+ 	wfRestoreWarnings();
+ }
+ 



More information about the evolvis-commits mailing list