Code

- Added other part of bug 673 patch for linux vserver
[gosa.git] / gosa-core / setup / class_setupStep_Checks.inc
index 0afb98c5f970b29d06cdcfd9a15e1782f9d0a6a9..d231c4025cf63a1cfd52db8d8a744147ea35dbf3 100644 (file)
@@ -149,13 +149,31 @@ class Step_Checks extends setup_step
       $output.= fread($sh, 4096);
     }
     pclose($sh);
+
     $N = msgPool::checkingFor(_("imagick"));
     $D = _("GOsa requires this extension to handle images.");
     $S = msgPool::installPhpModule("php5-imagick");
-    $R = is_callable("imagick_blob2image") || !empty($output);
+
+    $IMGVER = phpversion('imagick');
+
+    if ($IMGVER > 1.0) {
+        $R = method_exists('imagick','getImageBlob');
+    }
+    else {
+        $R = is_callable("imagick_blob2image") || !empty($output);
+    }
+
     $M = TRUE;
     $this->basic_checks[] = array("NAME" => $N , "DESC" => $D , "RESULT" => $R , "SOLUTION" => $S , "MUST" => $M );
 
+    $N = msgPool::checkingFor(_("compression module"));
+    $D = _("GOsa requires this extension to handle snapshots.");
+    $S = msgPool::installPhpModule("php5-zip / php5-gzip");
+    $R = is_callable("gzcompress");
+    $M = FALSE;
+    $this->basic_checks[] = array("NAME" => $N , "DESC" => $D , "RESULT" => $R , "SOLUTION" => $S , "MUST" => $M );
+
+
     /* PHP Configuration checks */
 
     /* Register_globals off */