X-Git-Url: https://git.tokkee.org/?a=blobdiff_plain;f=gosa-core%2Fsetup%2Fclass_setupStep_Checks.inc;h=d231c4025cf63a1cfd52db8d8a744147ea35dbf3;hb=88dabea136b599a537f8bcfa4b90ab479b23d6b9;hp=0afb98c5f970b29d06cdcfd9a15e1782f9d0a6a9;hpb=0a3ef51e22bc22c6f3386dfdc7af9168343d9558;p=gosa.git diff --git a/gosa-core/setup/class_setupStep_Checks.inc b/gosa-core/setup/class_setupStep_Checks.inc index 0afb98c5f..d231c4025 100644 --- a/gosa-core/setup/class_setupStep_Checks.inc +++ b/gosa-core/setup/class_setupStep_Checks.inc @@ -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 */