diff options
-rw-r--r-- | include/common.inc.php | 6 | ||||
-rw-r--r-- | include/php_compat/gzopen.php | 9 |
2 files changed, 13 insertions, 2 deletions
diff --git a/include/common.inc.php b/include/common.inc.php index d282da5a1..e3f4a16c7 100644 --- a/include/common.inc.php +++ b/include/common.inc.php @@ -72,8 +72,10 @@ $header_msgs = array(); $header_notes = array(); $filter = array(); -foreach( array( - ) as $func) +foreach( + array( + 'gzopen' + ) as $func) { if (!function_exists($func)) { diff --git a/include/php_compat/gzopen.php b/include/php_compat/gzopen.php new file mode 100644 index 000000000..4e9fe332d --- /dev/null +++ b/include/php_compat/gzopen.php @@ -0,0 +1,9 @@ +<?php +if (!function_exists('gzopen') && function_exists('gzopen64')) +{ + function gzopen(string $filename , string $mode, int $use_include_path = null) + { + return gzopen64($filename, $mode, $use_include_path); + } +} +?>
\ No newline at end of file |