mirror of
https://github.com/Piwigo/Piwigo.git
synced 2025-04-28 20:29:58 +03:00
bug 3078: avoid zlib issue on Ubuntu 14.04 (PHP 5.5) and maybe other systems
git-svn-id: http://piwigo.org/svn/trunk@29904 68402e56-0260-453c-a942-63ccdbb3a9ee
This commit is contained in:
parent
c4017d2a8a
commit
c08e34dea3
2 changed files with 13 additions and 2 deletions
|
@ -72,8 +72,10 @@ $header_msgs = array();
|
||||||
$header_notes = array();
|
$header_notes = array();
|
||||||
$filter = array();
|
$filter = array();
|
||||||
|
|
||||||
foreach( array(
|
foreach(
|
||||||
) as $func)
|
array(
|
||||||
|
'gzopen'
|
||||||
|
) as $func)
|
||||||
{
|
{
|
||||||
if (!function_exists($func))
|
if (!function_exists($func))
|
||||||
{
|
{
|
||||||
|
|
9
include/php_compat/gzopen.php
Normal file
9
include/php_compat/gzopen.php
Normal file
|
@ -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);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
?>
|
Loading…
Add table
Add a link
Reference in a new issue