(bug 11633) Explicitly convert redirect titles to strings due to PHP's very weak...
authorBryan Tong Minh <btongminh@users.mediawiki.org>
Sat, 5 Apr 2008 18:34:10 +0000 (18:34 +0000)
committerBryan Tong Minh <btongminh@users.mediawiki.org>
Sat, 5 Apr 2008 18:34:10 +0000 (18:34 +0000)
RELEASE-NOTES
includes/api/ApiQuery.php

index ff2ea07..35e1334 100644 (file)
@@ -191,6 +191,8 @@ it from source control: http://www.mediawiki.org/wiki/Download_from_SVN
 * Cleaned up redirect resolution
 * Added possibility to obtain all external links through list=exturlusage
 * (bug 13606) Added archivename to iiprop
+* (bug 11633) Explicitly convert redirect titles to strings due to PHP's
+  very weak typing on array keys.
 
 === Languages updated in 1.13 ===
 
index 7cb4e83..f72eb6d 100644 (file)
@@ -275,7 +275,7 @@ class ApiQuery extends ApiBase {
                $redirValues = array ();
                foreach ($pageSet->getRedirectTitles() as $titleStrFrom => $titleStrTo) {
                        $redirValues[] = array (
-                               'from' => $titleStrFrom,
+                               'from' => strval($titleStrFrom),
                                'to' => $titleStrTo
                        );
                }