diff options
author | till <till@php.net> | 2008-03-22 13:02:00 +0000 |
---|---|---|
committer | till <till@php.net> | 2008-03-22 13:02:00 +0000 |
commit | 03fcc16896fdd31973ad21c67b33da6fe0b6b579 (patch) | |
tree | 332693a3bf4a6317f9cedccfeea1858a40cd8a81 | |
parent | 34eab044a16e349aab846da5b3b706cdc6d472fc (diff) |
* fixing warning reported in #1484851
-rw-r--r-- | index.php | 6 |
1 files changed, 5 insertions, 1 deletions
@@ -103,8 +103,12 @@ if (empty($_task) || !in_array($_task, $MAIN_TASKS)) 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(); } |