viewgit/inc/functions.php:22 Function utf8_encode() is deprecated [8192]

switch gzcompress to gzencode (which works with gzip) for crawlLog rollover, a=chris

Chris Pollett [2014-04-29 16:Apr:th]
switch gzcompress to gzencode (which works with gzip) for crawlLog rollover, a=chris
Filename
lib/utility.php
diff --git a/lib/utility.php b/lib/utility.php
index cb37e21f7..994521ccb 100755
--- a/lib/utility.php
+++ b/lib/utility.php
@@ -819,7 +819,7 @@ function crawlLog($msg, $lname = NULL, $check_process_handler = false)
                 }
             }
             file_put_contents("$logfile.0.gz",
-                gzcompress(file_get_contents($logfile)));
+                gzencode(file_get_contents($logfile)));
             unlink($logfile);
         }
         //don't use error_log options in this case to happify hiphop4php
ViewGit