<?php
}
-if( phpversion() === '5.3.1' ) {
- $fatal = true;
- ?><li class="error"><strong>Fatal: PHP 5.3.1 is not compatible with MediaWiki!</strong>
- PHP 5.3.1 is not compatible with MediaWiki due to a <a href="http://news.php.net/php.internals/46389">bug in PHP</a>. Please use PHP 5.3.0, or PHP 5.3.2 or later.</li>
- <?php
-}
-
if( $fatal ) {
dieout( "Cannot install MediaWiki." );
}
} elseif ( $conf->DBtype == 'oracle' ) {
echo "<li>Attempting to connect to database \"" . htmlspecialchars( $wgDBname ) ."\"</li>";
$old_error_level = error_reporting();
- error_reporting($old_error_level & ~E_WARNING); //disable E_WARNING for test connect (oci returns login denied as warning)
+ wfSuppressWarnings();
$wgDatabase = $dbc->newFromParams('DUMMY', $wgDBuser, $wgDBpassword, $wgDBname, 1);
- error_reporting($old_error_level);
+ wfRestoreWarnings();
if (!$wgDatabase->isOpen()) {
$ok = true;
echo "<li>Connect failed.</li>";