diff options
author | thomascube <thomas@roundcube.net> | 2008-04-05 12:49:21 +0000 |
---|---|---|
committer | thomascube <thomas@roundcube.net> | 2008-04-05 12:49:21 +0000 |
commit | e70d6ea64e711096af36b1234f8545b870ea5f45 (patch) | |
tree | 98e784b95d08418d85a17af767037e8a6e0f3f41 /installer/check.php | |
parent | cb1330b7b10ce46e466850b27300a06ed122501e (diff) |
Apply changes from trunk to 0.1-stable
Diffstat (limited to 'installer/check.php')
-rw-r--r-- | installer/check.php | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/installer/check.php b/installer/check.php index 8352364f5..e671c06bd 100644 --- a/installer/check.php +++ b/installer/check.php @@ -1,7 +1,7 @@ <form action="index.php" method="get"> <?php -$required_php_exts = array('PCRE' => 'pcre', 'Session' => 'session', 'Sockets' => 'sockets'); +$required_php_exts = array('PCRE' => 'pcre', 'Session' => 'session'); $optional_php_exts = array('FileInfo' => 'fileinfo', 'Libiconv' => 'iconv', 'Multibyte' => 'mbstring', 'OpenSSL' => 'openssl', 'Mcrypt' => 'mcrypt', 'GD' => 'gd'); @@ -37,13 +37,13 @@ echo '<input type="hidden" name="_step" value="' . ($RCI->configured ? 3 : 2) . <h3>Checking PHP version</h3> <?php -if (phpversion() > 4.3) { - $RCI->pass('Version', 'PHP ' . phpversion() . ' detected'); +define('MIN_PHP_VERSION', '4.3.1'); +if (version_compare(PHP_VERSION, MIN_PHP_VERSION, '>=')) { + $RCI->pass('Version', 'PHP ' . PHP_VERSION . ' detected'); } else { - $RCI->fail('Version', 'PHP Version 4.3.1 or greater is required'); + $RCI->fail('Version', 'PHP Version ' . MIN_PHP_VERSION . ' or greater is required ' . PHP_VERSION . ' detected'); } - ?> <h3>Checking PHP extensions</h3> @@ -65,7 +65,7 @@ foreach ($required_php_exts AS $name => $ext) { ?> -<p class="hint">These extensions are <em>optional</em> but recommended to get the best performance:</p> +<p class="hint">The next couple of extensions are <em>optional</em> but recommended to get the best performance:</p> <?php foreach ($optional_php_exts AS $name => $ext) { |