Made DatabaseBase::getSoftwareLink() dynamic.
authorAaron Schulz <aschulz@wikimedia.org>
Wed, 15 May 2013 04:13:02 +0000 (21:13 -0700)
committerAaron Schulz <aschulz@wikimedia.org>
Wed, 15 May 2013 04:18:57 +0000 (21:18 -0700)
* All callers are calling it this way and it breaks
  hhvm when declared statically and called dynamically.

Change-Id: I894e615fd828615384aa8457a16a759c8aa416ef

includes/db/Database.php
includes/db/DatabaseMssql.php
includes/db/DatabaseMysql.php
includes/db/DatabaseOracle.php
includes/db/DatabasePostgres.php
includes/db/DatabaseSqlite.php
tests/phpunit/includes/db/DatabaseTestHelper.php

index 85c459e..09866dc 100644 (file)
@@ -184,7 +184,7 @@ interface DatabaseType {
         *
         * @return string: wikitext of a link to the server software's web site
         */
-       static function getSoftwareLink();
+       function getSoftwareLink();
 
        /**
         * A string describing the current software version, like from
index 130ac70..240a097 100644 (file)
@@ -654,7 +654,7 @@ class DatabaseMssql extends DatabaseBase {
        /**
         * @return string wikitext of a link to the server software's web site
         */
-       public static function getSoftwareLink() {
+       public function getSoftwareLink() {
                return "[http://www.microsoft.com/sql/ MS SQL Server]";
        }
 
index d8a3723..ca5a2b4 100644 (file)
@@ -671,7 +671,7 @@ class DatabaseMysql extends DatabaseBase {
        /**
         * @return string
         */
-       public static function getSoftwareLink() {
+       public function getSoftwareLink() {
                return '[http://www.mysql.com/ MySQL]';
        }
 
index c197d91..4fa2397 100644 (file)
@@ -837,7 +837,7 @@ class DatabaseOracle extends DatabaseBase {
        /**
         * @return string wikitext of a link to the server software's web site
         */
-       public static function getSoftwareLink() {
+       public function getSoftwareLink() {
                return '[http://www.oracle.com/ Oracle]';
        }
 
index b5ac5cb..367335e 100644 (file)
@@ -1059,7 +1059,7 @@ __INDEXATTR__;
        /**
         * @return string wikitext of a link to the server software's web site
         */
-       public static function getSoftwareLink() {
+       public function getSoftwareLink() {
                return '[http://www.postgresql.org/ PostgreSQL]';
        }
 
index 53a4dcf..ed6c848 100644 (file)
@@ -612,7 +612,7 @@ class DatabaseSqlite extends DatabaseBase {
        /**
         * @return string wikitext of a link to the server software's web site
         */
-       public static function getSoftwareLink() {
+       public function getSoftwareLink() {
                return "[http://sqlite.org/ SQLite]";
        }
 
index 57df08e..790f273 100644 (file)
@@ -144,7 +144,7 @@ class DatabaseTestHelper extends DatabaseBase {
                return -1;
        }
 
-       static function getSoftwareLink() {
+       function getSoftwareLink() {
                return 'test';
        }