Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/matomo-org/matomo.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormattab <matthieu.aubry@gmail.com>2014-08-04 19:31:54 +0400
committermattab <matthieu.aubry@gmail.com>2014-08-04 19:31:54 +0400
commit2e556980fda6f6c11a1a11e703940345f12c370b (patch)
treed2db4c0a14b8b36b6e3e73c973edd2494576ddea /libs/upgradephp
parent2d27720df26c4d3bda7c6bb28476a0eb7c0eaf43 (diff)
Fixes #5407 Define gzopen function as alias of gzopen64 when it applies
Diffstat (limited to 'libs/upgradephp')
-rw-r--r--libs/upgradephp/upgrade.php11
1 files changed, 11 insertions, 0 deletions
diff --git a/libs/upgradephp/upgrade.php b/libs/upgradephp/upgrade.php
index ffc6a1d87f..498e877280 100644
--- a/libs/upgradephp/upgrade.php
+++ b/libs/upgradephp/upgrade.php
@@ -685,3 +685,14 @@ if(!function_exists('mb_strtolower')) {
return strtolower($input);
}
}
+
+/**
+ * On ubuntu in some cases, there is a bug that gzopen does not exist and one must use gzopen64 instead
+ */
+if (!function_exists('gzopen')
+ && function_exists('gzopen64')) {
+ function gzopen($filename , $mode = 'r', $use_include_path = 0 )
+ {
+ return gzopen64($filename , $mode, $use_include_path);
+ }
+}