From 03fcc16896fdd31973ad21c67b33da6fe0b6b579 Mon Sep 17 00:00:00 2001
From: till <till@php.net>
Date: Sat, 22 Mar 2008 09:02:00 -0400
Subject: [PATCH] * fixing warning reported in #1484851
---
index.php | 6 +++++-
1 files changed, 5 insertions(+), 1 deletions(-)
diff --git a/index.php b/index.php
index 6872ab4..642c07a 100644
--- a/index.php
+++ b/index.php
@@ -103,8 +103,12 @@
if ($_action != 'get' && $_action != 'viewsource')
{
// use gzip compression if supported
- if (function_exists('ob_gzhandler') && !ini_get('zlib.output_compression'))
+ if (function_exists('ob_gzhandler')
+ && !ini_get('zlib.output_compression')
+ && ini_get('output_handler') != 'ob_gzhandler')
+ {
ob_start('ob_gzhandler');
+ }
else
ob_start();
}
--
Gitblit v1.9.1