From: <var...@us...> - 2014-10-03 14:11:28
|
Revision: 9171 http://sourceforge.net/p/phpwiki/code/9171 Author: vargenau Date: 2014-10-03 14:11:26 +0000 (Fri, 03 Oct 2014) Log Message: ----------- function gzencode exists Modified Paths: -------------- trunk/lib/stdlib.php trunk/lib/ziplib.php Modified: trunk/lib/stdlib.php =================================================================== --- trunk/lib/stdlib.php 2014-10-03 13:59:53 UTC (rev 9170) +++ trunk/lib/stdlib.php 2014-10-03 14:11:26 UTC (rev 9171) @@ -1792,8 +1792,7 @@ function phpwiki_gzhandler($ob) { - if (function_exists('gzencode')) - $ob = gzencode($ob); + $ob = gzencode($ob); $GLOBALS['request']->_ob_get_length = strlen($ob); if (!headers_sent()) { header(sprintf("Content-Length: %d", $GLOBALS['request']->_ob_get_length)); Modified: trunk/lib/ziplib.php =================================================================== --- trunk/lib/ziplib.php 2014-10-03 13:59:53 UTC (rev 9170) +++ trunk/lib/ziplib.php 2014-10-03 14:11:26 UTC (rev 9171) @@ -157,10 +157,7 @@ function zip_deflate($content) { // Compress content, and suck information from gzip header. - if (function_exists('gzencode')) - $z = gzencode($content); - else - $z = gzip_compress($content); + $z = gzencode($content); // Suck OS type byte from gzip header. FIXME: this smells bad. This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |