* More exact checking in Title::equals() to fox moves of numerically similar
authorBrion Vibber <brion@users.mediawiki.org>
Sat, 18 Feb 2006 19:41:01 +0000 (19:41 +0000)
committerBrion Vibber <brion@users.mediawiki.org>
Sat, 18 Feb 2006 19:41:01 +0000 (19:41 +0000)
  page titles. (Odd hex title bug on 64-bit.)

RELEASE-NOTES
includes/Title.php

index e99b6ea..fbf732b 100644 (file)
@@ -636,6 +636,8 @@ fully support the editing toolbar, but was found to be too confusing.
 * Remove legacy PHPTal code, hasn't been maintained in ages.
 * Tweak Userlogin include order for APC issue
 * Don't try to link to current page on protection tab
+* More exact checking in Title::equals() to fox moves of numerically similar
+  page titles. (Odd hex title bug on 64-bit.)
 
 
 === Caveats ===
index 2c19325..d65176e 100644 (file)
@@ -2088,9 +2088,10 @@ class Title {
         * @return bool
         */
        function equals( $title ) {
-               return $this->getInterwiki() == $title->getInterwiki()
+               // Note: === is necessary for proper matching of number-like titles.
+               return $this->getInterwiki() === $title->getInterwiki()
                        && $this->getNamespace() == $title->getNamespace()
-                       && $this->getDbkey() == $title->getDbkey();
+                       && $this->getDbkey() === $title->getDbkey();
        }
 
        /**