From: Roland Häder Date: Wed, 31 Aug 2011 20:30:56 +0000 (+0000) Subject: GzipCompressor now uses the right functions X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=3c97eff502ab08e0b278d11022bff2aef437d41a;p=core.git GzipCompressor now uses the right functions --- 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); } /**