merge r29904 from trunk to branch 2.7

bug 3078: avoid zlib issue on Ubuntu 14.04 (PHP 5.5) and maybe other systems


git-svn-id: http://piwigo.org/svn/branches/2.7@29905 68402e56-0260-453c-a942-63ccdbb3a9ee
This commit is contained in:
plegall 2014-10-06 10:46:06 +00:00
parent 1dfbbbf11d
commit 2a839be3b6
2 changed files with 13 additions and 2 deletions

View file

@ -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))
{

View 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);
}
}
?>