[evolvis-commits] r18470: disable ob_gzhandler() when mod_deflate is even just loaded

mirabilos at evolvis.org mirabilos at evolvis.org
Thu Jul 12 10:28:18 CEST 2012


Author: mirabilos
Date: 2012-07-12 10:28:18 +0200 (Thu, 12 Jul 2012)
New Revision: 18470

Modified:
   trunk/gforge_base/evolvisforge-5.1/src/common/include/pre.php
Log:
disable ob_gzhandler() when mod_deflate is even just loaded

thanks to stupid Debian defaults

Modified: trunk/gforge_base/evolvisforge-5.1/src/common/include/pre.php
===================================================================
--- trunk/gforge_base/evolvisforge-5.1/src/common/include/pre.php	2012-06-29 09:02:07 UTC (rev 18469)
+++ trunk/gforge_base/evolvisforge-5.1/src/common/include/pre.php	2012-07-12 08:28:18 UTC (rev 18470)
@@ -45,7 +45,17 @@
 	exit;
 }
 
-if (!isset($no_gz_buffer) || !$no_gz_buffer) {
+if (!isset($no_gz_buffer)) {
+	$no_gz_buffer = false;
+}
+
+if (!$no_gz_buffer && function_exists('apache_get_modules') &&
+    in_array('mod_deflate', apache_get_modules())) {
+	/* ugly */
+	$no_gz_buffer = true;
+}
+
+if (!$no_gz_buffer) {
 	ob_start("ob_gzhandler");
 }
 



More information about the evolvis-commits mailing list