Versioncruft: remove a check for PHP 4.1 workaround, no longer needed
authorBrion Vibber <brion@users.mediawiki.org>
Tue, 23 May 2006 20:49:30 +0000 (20:49 +0000)
committerBrion Vibber <brion@users.mediawiki.org>
Tue, 23 May 2006 20:49:30 +0000 (20:49 +0000)
includes/Database.php

index 8376f06..2bdf610 100644 (file)
@@ -270,14 +270,7 @@ class Database {
                        @/**/$this->mConn = mysql_pconnect( $server, $user, $password );
                } else {
                        # Create a new connection...
-                       if( version_compare( PHP_VERSION, '4.2.0', 'ge' ) ) {
-                               @/**/$this->mConn = mysql_connect( $server, $user, $password, true );
-                       } else {
-                               # On PHP 4.1 the new_link parameter is not available. We cannot
-                               # guarantee that we'll actually get a new connection, and this
-                               # may cause some operations to fail possibly.
-                               @/**/$this->mConn = mysql_connect( $server, $user, $password );
-                       }
+                       @/**/$this->mConn = mysql_connect( $server, $user, $password, true );
                }
 
                if ( $dbName != '' ) {