|
|
@ -83,7 +83,7 @@ echo '<input type="hidden" name="_step" value="' . ($RCI->configured ? 3 : 2) .
|
|
|
|
<h3>Checking PHP version</h3>
|
|
|
|
<h3>Checking PHP version</h3>
|
|
|
|
<?php
|
|
|
|
<?php
|
|
|
|
|
|
|
|
|
|
|
|
define('MIN_PHP_VERSION', '5.2.1');
|
|
|
|
define('MIN_PHP_VERSION', '5.3.7');
|
|
|
|
if (version_compare(PHP_VERSION, MIN_PHP_VERSION, '>=')) {
|
|
|
|
if (version_compare(PHP_VERSION, MIN_PHP_VERSION, '>=')) {
|
|
|
|
$RCI->pass('Version', 'PHP ' . PHP_VERSION . ' detected');
|
|
|
|
$RCI->pass('Version', 'PHP ' . PHP_VERSION . ' detected');
|
|
|
|
} else {
|
|
|
|
} else {
|
|
|
@ -138,15 +138,9 @@ foreach ($optional_php_exts as $name => $ext) {
|
|
|
|
$prefix = (PHP_SHLIB_SUFFIX === 'dll') ? 'php_' : '';
|
|
|
|
$prefix = (PHP_SHLIB_SUFFIX === 'dll') ? 'php_' : '';
|
|
|
|
foreach ($RCI->supported_dbs as $database => $ext) {
|
|
|
|
foreach ($RCI->supported_dbs as $database => $ext) {
|
|
|
|
if (extension_loaded($ext)) {
|
|
|
|
if (extension_loaded($ext)) {
|
|
|
|
// MySQL driver requires PHP >= 5.3 (#1488875)
|
|
|
|
|
|
|
|
if ($ext == 'pdo_mysql' && version_compare(PHP_VERSION, '5.3.0', '<')) {
|
|
|
|
|
|
|
|
$RCI->fail($database, 'PHP >= 5.3 required', null, true);
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
else {
|
|
|
|
|
|
|
|
$RCI->pass($database);
|
|
|
|
$RCI->pass($database);
|
|
|
|
$found_db_driver = true;
|
|
|
|
$found_db_driver = true;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
else {
|
|
|
|
else {
|
|
|
|
$_ext = $ext_dir . '/' . $prefix . $ext . '.' . PHP_SHLIB_SUFFIX;
|
|
|
|
$_ext = $ext_dir . '/' . $prefix . $ext . '.' . PHP_SHLIB_SUFFIX;
|
|
|
|
$msg = @is_readable($_ext) ? 'Could be loaded. Please add in php.ini' : '';
|
|
|
|
$msg = @is_readable($_ext) ? 'Could be loaded. Please add in php.ini' : '';
|
|
|
|