]> source.dussan.org Git - nextcloud-server.git/commitdiff
add check for zlib
authorFrank Karlitschek <frank@owncloud.org>
Thu, 6 Sep 2012 23:39:11 +0000 (01:39 +0200)
committerFrank Karlitschek <frank@owncloud.org>
Thu, 6 Sep 2012 23:39:11 +0000 (01:39 +0200)
lib/util.php

index 1dcf7c2cbfa355ce7cf7cf177f523601ced2d82e..b742e27b55d9ffab06f6424d5bdd3c1d3fe8c0ba 100755 (executable)
@@ -276,6 +276,9 @@ class OC_Util {
                if(!function_exists('imagepng')){
                        $errors[]=array('error'=>'PHP module GD is not installed.<br/>','hint'=>'Please ask your server administrator to install the module.');
                }
+               if(!function_exists('gzencode')){
+                       $errors[]=array('error'=>'PHP module zlib is not installed.<br/>','hint'=>'Please ask your server administrator to install the module.');
+               }
                if(floatval(phpversion())<5.3){
                        $errors[]=array('error'=>'PHP 5.3 is required.<br/>','hint'=>'Please ask your server administrator to update PHP to version 5.3 or higher. PHP 5.2 is no longer supported by ownCloud and the PHP community.');
                }