diff options
author | mattab <matthieu.aubry@gmail.com> | 2014-08-04 19:31:54 +0400 |
---|---|---|
committer | mattab <matthieu.aubry@gmail.com> | 2014-08-04 19:31:54 +0400 |
commit | 2e556980fda6f6c11a1a11e703940345f12c370b (patch) | |
tree | d2db4c0a14b8b36b6e3e73c973edd2494576ddea /libs/upgradephp | |
parent | 2d27720df26c4d3bda7c6bb28476a0eb7c0eaf43 (diff) |
Fixes #5407 Define gzopen function as alias of gzopen64 when it applies
Diffstat (limited to 'libs/upgradephp')
-rw-r--r-- | libs/upgradephp/upgrade.php | 11 |
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); + } +} |