diff options
Diffstat (limited to 'wizard/index.php')
-rw-r--r-- | wizard/index.php | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/wizard/index.php b/wizard/index.php index 91f9ece7..fddc3121 100644 --- a/wizard/index.php +++ b/wizard/index.php @@ -235,6 +235,12 @@ if ($php && $os && $type && !$err) { if ($type == 'base') { printf("<li>You want a <b>single version </b> which means replacing base packages from the distribution</li><br />"); + if ($dist != Fedora && $ver >= 9) { + $min = $osmin[$os]; + } else { + $min = (is_array($osvers[$os]) ? $osvers[$os][0] : $osvers[$os]); + } + printf("<li>Packages have the <b>same name</b> than the base repository, ie php-*</li><br />"); if (version_compare($php, $osmax[$os], '>')) { @@ -243,8 +249,8 @@ if ($php && $os && $type && !$err) { } else if (!$phpvers[$php]) { printf("<li>Sorry, but PHP version <b>%s</b> are not yet available for <b>%s</b> as single version, try multiple versions.</li><br />", $php, $os); - } else if (version_compare($php, $tmp=(is_array($osvers[$os]) ? $osvers[$os][0] : $osvers[$os]), '<')) { - printf("<li>Sorry, but PHP version older than <b>%s</b> are not available for <b>%s</b>, try multiple versions.</li><br />", $tmp, $os); + } else if (version_compare($php, $min, '<')) { + printf("<li>Sorry, but PHP version older than <b>%s</b> are not available for <b>%s</b>, try multiple versions.</li><br />", $min, $os); } else { if ($dist == 'Fedora' && version_compare($php, $tmp=(is_array($osvers[$os]) ? $osvers[$os][0] : $osvers[$os]), '=')) { |