From 2a839be3b6554003e0c3ffe07e2a35b6d43174e1 Mon Sep 17 00:00:00 2001 From: plegall Date: Mon, 6 Oct 2014 10:46:06 +0000 Subject: 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 --- include/common.inc.php | 6 ++++-- include/php_compat/gzopen.php | 9 +++++++++ 2 files changed, 13 insertions(+), 2 deletions(-) create mode 100644 include/php_compat/gzopen.php 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 @@ + \ No newline at end of file -- cgit v1.2.3