From 3c97eff502ab08e0b278d11022bff2aef437d41a Mon Sep 17 00:00:00 2001 From: =?utf8?q?Roland=20H=C3=A4der?= Date: Wed, 31 Aug 2011 20:30:56 +0000 Subject: [PATCH] GzipCompressor now uses the right functions --- inc/classes/main/compressor/class_GzipCompressor.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/inc/classes/main/compressor/class_GzipCompressor.php b/inc/classes/main/compressor/class_GzipCompressor.php index 000fc844..92109048 100644 --- a/inc/classes/main/compressor/class_GzipCompressor.php +++ b/inc/classes/main/compressor/class_GzipCompressor.php @@ -42,7 +42,7 @@ class GzipCompressor extends BaseFrameworkSystem implements Compressor { $compressorInstance = NULL; // Get new instance - if ((function_exists('gzcompress')) && (function_exists('gzuncompress'))) { + if ((function_exists('gzencode')) && (function_exists('gzdecode'))) { // Compressor can maybe be used $compressorInstance = new GzipCompressor(); } // END - if @@ -65,7 +65,7 @@ class GzipCompressor extends BaseFrameworkSystem implements Compressor { } // END - if // Return the compressed stream - return gzcompress($streamData, 1); + return gzencode($streamData, 1); } /** @@ -82,7 +82,7 @@ class GzipCompressor extends BaseFrameworkSystem implements Compressor { } // END - if // Return the decompressed stream - return gzuncompress($streamData); + return gzdecode($streamData); } /** -- 2.39.5