Fix #8121 : wfRandom() is not between 0 and 1
[lhc/web/wiklou.git] / RELEASE-NOTES
1 = MediaWiki release notes =
2
3 Security reminder: MediaWiki does not require PHP's register_globals
4 setting since version 1.2.0. If you have it on, turn it *off* if you can.
5
6 == MediaWiki 1.9 ==
7
8 THIS IS NOT A RELEASE YET.
9
10 MediaWiki is now using a "continuous integration" development model with
11 quarterly snapshot releases. The latest development code is always kept
12 "ready to run", and in fact runs our own sites on Wikipedia.
13
14 Release branches will continue to receive security updates for about a year
15 from first release, but nonessential bugfixes and feature development happen
16 will be made on the development trunk and appear in the next quarterly release.
17
18 Those wishing to use the latest code instead of a branch release can obtain
19 it from source control: http://www.mediawiki.org/wiki/Download_from_SVN
20
21 == Configuration changes ==
22
23
24 == Major new features ==
25
26
27 == Changes since 1.8 ==
28
29 * (bug 8200) Make category lists sorted by name when using Postgres.
30 * (bug 7841) Support 'IGNORE' inserts for Postgres, fixes watchlist
31 adding problem.
32 * (bug 6835) Removing the includes/Parser.php::getTemplateArgs() function,
33 because it seems to be unused.
34 * (bug 7139) Increasing the visual width of the edit summary field on larger
35 screen sizes, for the default monobook skin.
36 * Fix PHP notice and estimates for dumpBackup.php and friends
37 * Improved register_globals paranoia checks
38 * (bug 7545) Fix PHP version check on install
39 * Disable PHP exception backtrace printing unless $wgShowExceptionDetails
40 is set. Backtraces may contain sensitive information in function call
41 parameters.
42 * (bug 6164) Avoid smashing Cite state if message transformation triggers
43 during bad image list check, by skipping message transformation.
44 This isn't a good permanent fix.
45 * (bug 6918) Stopped borders and backgrounds from showing through floated
46 tables in Monobook
47 * (bug 6868) Un-hardcode section edit link style
48 * (bug 3205) Stop right floats from stacking horizontally in non-Monobook skins
49 * Added global $wgStyleVersion to centralize bumping CSS and JS file versions
50 for cache-friendly style and script updating
51 * (bug 7562) Fix non-ASCII namespaces on Windows/XAMPP servers
52 * Friendlier check for PHP 5 in command-line scripts; it's common for parallel
53 PHP 4 and 5 installations to interfere on the command-line.
54 * Fix regression in autoconfirm permission check
55 * (bug 3015) Add CSS ids to subcategory and page sections on category pages
56 * (bug 7587) Fix erroneous id for specialpage tab, enabling informative popup
57 * (bug 7599) Fix thumbnail purging, PHP notices on HTCP image page purge
58 * (bug 7581) Update language name for cbk-zam
59 * (bug 7444) Update namespace translations for Telugu (te), kept old values as
60 alias for compatibility
61 * (bug 4525) Move section links down visually to same level as headings
62 (editsection links are now inside the heading elements)
63 * Workaround for http://bugs.php.net/bug.php?id=31892 , PATH_INFO and hence
64 URLs of the style /index.php/Main_Page were broken on some CGI installations.
65 * (bug 7623) Validate custom HTML id's correctly in Monobook interface
66 * (bug 2241) Fix collision of 'w' and 'd' accesskeys
67 * (bug 5795) CSS class added to body based on page name for page-specific
68 styling
69 * (bug 6276) Stopped search field from getting too large in Cologne Blue
70 * (bug 7644) User creations that are aborted by hooks shouldn't be counted
71 against account creations per day limit
72 * (bug 7636) Show Firefox 2 users correct accesskey prefix
73 * (bug 6427) Block blocked IPs from using the mail password function
74 to allow blocking of flooders
75 * Include common.css from classic-style skins in main HTML with the bump URL
76 * (bug 7607) Add Karakalpak (kaa) to Names.php and stub message file for linktrail
77 * (bug 7582) Add 'tog-nolangconversion' to MessagesEn.php.
78 This key is need for languages with variants (zh, sr, kk)
79 * (bug 7606) MediaWiki messages for "rss" and "atom" missing
80 * (bug 7609) Add some more '*-summary' messages to MessagesEn.php with empty
81 strings to allow better localisation via Special:Allmessages. Mark this new
82 messages as optional for localisation.
83 * Fix user_newpass upgrade for prefixed tables (reported by Fyren)
84 * (bug 7663) Include language variant switcher links on Nostalgia skin
85 * (bug 6531) Fix PHP fatal error on installation page with bad username input.
86 * (bug 6977) Remove 404 link for autogenerated database documentation.
87 * (bug 7369) Allow "Show Changes" without requiring edit token.
88 * (bug 7687) Fix movetalk box checks itself when confirming a delete and move.
89 * (bug 7684) Obey watchcreated preference for Special:Upload watch checkbox
90 * (bug 7686) Include id attribute on delete form confirmation button
91 * Allow compound interwiki prefixes in $wgImportSources
92 * (bug 7304) Added redirect table to store redirect targets.
93 * Added querycachetwo table (similar to querycache but has two titles)
94 * PageArchive can now return a Revision object for more convenient processing
95 of deleted revision data
96 * Added 'UndeleteShowRevision' hook in Special:Undelete
97 * Error message on attempt to view invalid or missing deleted revisions
98 * Remove unsightly "_" from namespace in Special:Allpages, Special:Prefixindex
99 * (bug 3224) Allow minor edits by bots to skip new message notification on
100 user talk pages. This can be disabled by adjusting the 'nominornewtalk'
101 permission. Patch by Werdna.
102 * (bug 7741) MATH: fixed broken syntax of underbrace etc. Fixed arrays
103 * Fix purging for updated SVG files
104 * (bug 7745) Add id attribute to search button in Monobook
105 * (bug 7749) MATH: added some more LaTeX symbols, e.g. parallel, diamond, ast, ...
106 * (bug 7304) Added code in Article.php to keep redirect table up to date.
107 * Made special page names case-insensitive and localisable. Care has been taken
108 to maintain backwards compatibility.
109 * Used special page subpages in a few more places, instead of query parameters.
110 * (bug 7758) Added wrapper span to "templates used" explanation to allow CSS
111 styling (class="mw-templatesUsedExplanation").
112 * Added {{#special:}} parser function, to give the local default title for
113 special pages
114 * (bug 7766) Remove redundant / from AJAX requests, can break some servers
115 * Add tab links from extensions to classic-based skins (SkinTemplateTab hook)
116 Provides better cross-skin compatibility for extensions using the modern
117 skin hooks, such as Oversight
118 * Moved variant language links on Cologne Blue and Nostalgia to before the
119 login/logout link
120 * Fix for parser tests with MySQL 5 in strict mode
121 * Added block option "enable autoblocks"
122 * Amend Special:Ipblocklist to note when a block has autoblock DISABLED.
123 * (bug 7780) Fix regression in editing redirects
124 * Add whitespace above "templates included on this page" using CSS, not
125 hardcoded line break.
126 * Remove entries from redirect table on article deletion
127 * (bug 7788) Force section headers in new section links for users who have
128 'prompt for blank edit summaries' on.
129 * (bug 1133) Special:Emailuser: add an option to send yourself a copy of your mail.
130 * (bug 461) Allow "Categories:" link at bottom of pages to be customized via
131 pagecategorieslink message.
132 * Sort the list of skins in "My Preferences" -> Skins by alphabetical order.
133 * (bug 7785) Postgres compatibility for timestamps in RC feeds
134 * (bug 7550) Normalize user parameter normally on Special:Log
135 * (bug 7294) Fix PATH search for diff3 on install
136 * Various fixes related to the blocking change re: autoblocks. On inserting
137 an IP block, the ipb_enable_autoblock field is now automagically blanked,
138 because it doesn't make any sense for an IP. Additionally, IP blocks
139 without the ipb_enable_autoblock option no longer show up as "autoblock
140 disabled" on Special:Ipblocklist.
141 * (bug 7774) MATH: aded more amstex functions
142 * (bug 1182) MATH: fixed inconsistent rendering of upper case Greek letters in TeX
143 * Fix regression in streaming page dump generation
144 * (bug 7801) Add support for parser function hooks in parser tests
145 * checkUsernames.php now uses wfDebugLog instead of hardcoded path to log
146 * (bug 7810) Update talk namespaces for Occitan
147 * Allow case-sensitive URLs to be used for uploading from URLs.
148 * (bug 1109) Correct fix for compressed 304 responses when additional output
149 buffers have been installed within the compression handler
150 * (bug 7819) Move automatic redirect edit summary after pre-save transform
151 to work properly with subst: fun
152 * (bug 7826) Fix typos in two English messages.
153 * (bug 5365) Stop users being prompted to enter an edit summary for null edits,
154 if they have selected that option in preferences.
155 * (bug 5936) Show an 'm' to the left of the edit summary on diff pages for minor edits.
156 * (bug 7820) Improve error reporting for uploads via URL.
157 * (bug 5149) When autoblocks are enabled, retroactively apply an autoblock to the most
158 recently used IP of a user when they are blocked.
159 * Add an index on (rc_user_text,rc_timestamp) on the recentchanges table. This will
160 make CheckUser.php and the new retroactive autoblock functionality faster.
161 * Fix regression in Special:Undelete for revisions deleted under MediaWiki 1.4
162 with compression or legacy encoding
163 * (bug 6737) Fixes for MySQL 5 schema in strict mode
164 * Approximate height for client-side scaling fallback instead of passing -1
165 into the HTML output.
166 * Make the DNSBL to check for proxy blocking configurable via $wgSorbsUrl
167 * Add experimental recording/reporting mode to parser tests runner, to
168 compare changes against the previous run.
169 Additional tables 'testrun' and 'testitem' are in maintenance/testRunner.sql,
170 source this and pass --record option to parserTests.php
171 * Make the set of default parser test input files extensible via
172 $wgParserTestFiles. This can now be appended to by extensions or local
173 configuration files so that extension or custom tests can be automatically
174 run along with the main batch.
175 * Run PHP install version checks on update.php so command-line updaters see
176 new version requirements
177 * Do a check for the PHP 5.0.x 64-bit bug, since this is much more disruptive
178 as of MW 1.8 than it used to be. Install or upgrade now aborts with a
179 warning and a request to upgrade.
180 * (bug 6440) Updated indexes to improve backlinking queries (links, templates, images)
181 * Switched 'anon-only' block mode to default for IP blocks
182 * (bug 3687, 7892) Add distinct heading for media files in category display,
183 with count.
184 * (bug 1578) Add different icons for external links to audio, video, or PDF in
185 Monobook.
186 * Made autoblocks block account creation if the user block has that option enabled.
187 * Add auto-summaries to blankings and large removals without summaries.
188 * (bug 7811) Allow preview of edit summaries.
189 * (bug 6839) Wikibits.js minor changes to make JS-lint happier.
190 * (bug 7932) Make sure that edit toolbar clears floats so it appears correctly.
191 * (bug 6873) When viewing old revisions, add link to diff to current version.
192 * (bug 3315) Provide rollback link directly on history page.
193 * Detect CGI configurations where PATH_INFO is set up correctly.
194 PHP config var cgi.fix_pathinfo isn't detectable through ini_get(), but
195 we can find some side-effects. Only tested on lighttpd so far, hopefully
196 right on Apache too!
197 * Replace 'old-revision-navigation' message with 'revision-info' and
198 'revision-nav' messages, wrapped in divs with appropriate id's.
199 * (bug 4178) MediaWiki:Common.js will now be included for all users if
200 $wgUseSiteJs is enabled, in addition to (if applicable) MediaWiki:Monobook.js
201 and user JS subpages.
202 * (bug 7918) "Templates used on this page" changes during preview to reflect
203 any added or removed templates, and works as expected for section edits.
204 * (bug 7919) "Templates used on this page" is now shown for read-only pages.
205 * (bug 7688) When viewing diff, section anchors in autosummary jump to section
206 on current page instead of loading the latest version.
207 * (bug 7970) Use current connection explicitly on Database::getServerVersion
208 * (bug 2001) Tables with class="sortable" can now be dynamically sorted via
209 JavaScript.
210 * Added autosummary for new pages with 500 or less characters, and refactor
211 the autosummary code so it's all done in one function. doEdit is getting too
212 big!
213 * (bug 7554) The correct MIME type for SVG images is now displayed on the
214 image page (image/svg+xml, not image/svg).
215 * (bug 7883) Added autoblock whitelisting feature, using which specific ranges
216 can be protected from autoblocking. These ranges are specified, in list format,
217 in the autoblock_whitelist system message.
218 * Added placeholders for text injection by hooks to EditPage.php
219 * (bug 8009) Automatic edit summary for redirects is not filled for edits in existing pages
220 * Installer support for experimental MySQL 4.1/5.0 binary-safe schema
221 * Use INSERT IGNORE for db-based BagOStuff add/insert, for more memcache-like
222 behavior when keys already exist on add (instead of dying with an error...)
223 * Add a hook 'UploadForm:initial' before the upload form is generated, and two
224 member variable for text injection into the form, which can be filled by the hooks.
225 * (bug 6295) Add a "revision patching" functionality, where an edit can be undone
226 (with a functionality similar to diff rev1 rev2 | patch -R rev3 -o rev3).
227 This is triggered by including &undo=revid in an edit URL. A link to a URL
228 that will undo a given edit is shown on NEW NON-CURRENT revision headers on diff pages.
229 * Fix display of link in "already rolled back" message for image/category pages
230 * (bug 6016) Left-aligned images should stack vertically, like right-aligned
231 images, not horizontally.
232 * Patch from LeonWP: added UploadForm:BeforeProcessing hook in SpecialUpload.php
233 * Add AuthPluginSetup hook to override $wgAuth after configuration
234 * Fix regression in authentication hook auto-creation on login
235 * (bug 8110) Allow spaces in ISBNs
236 * (bug 8024) Introduce "send me copies of emails I send to others" preference
237 * Added 'EditPage::attemptSave' hook before an article is saved.
238 * (bug 8083) Applied patch for sk localisation
239 * Add a backslash character to the edit token, to prevent edits via certain
240 broken proxies that mangle such characters in form submissions
241 * (bug 7461) Allow overwriting pages using importTextFile.php
242 * (bug 7946) importTextFile.php doesn't perform pre-save transform
243 * (bug 8117) {{REVISIONTIMESTAMP}} showed weird default if $wgLocalTZoffset set;
244 now uses current time for previews and if timestamp can't be loaded from DB
245 * {{REVISIONTIMESTAMP}} now uses site local timezone instead of user timezone
246 to ensure consistent behavior
247 * {{REVISIONTIMESTAMP}} and friends should now work on non-MySQL backends
248 * (bug 7671) Observe canonical media namespace prefix in Linker::formatComment
249 * Added js variable wgCurRevisionId to the output
250 * (bug 8141) Cleanup of Parser::doTableStuff, patch by AzaTht
251 * (bug 8042) Make miser mode caching limits settable via $wgQueryCacheLimit
252 instead of hardcoding to 1000
253 * Enable QueryPage classes to override list formatting
254 * (bug 5485) Show number of intervening revisions in diff view
255 * (bug 8100) Fix XHTML validity in Taiwanese localization
256 * Added redirect to section feature. Use it wisely.
257 * Added a configuration variable allowing the "break out of framesets" feature
258 to be switched on and off ($wgBreakFrames). Off by default.
259 * Allow Xml::check() $attribs parameter to override 'value' attribute
260 * DB schema change: added two columns (rc_old_len and rc_new_len) to the recentchanges table to store
261 the text lengths before and after the edit
262 * (bug 1085) Made Special:Recentchanges show the character difference between the changed revisions
263 * Removed a redundant <strong> tag from diff pages that was causing display issues for some users
264 * (bug 8203) The keyboard shortcut for "log out" was removed, because users were pressing it
265 when they intended to press the shortcut for "preview".
266 * (bug 8148) Handle non-removable output buffers gracefully when cleaning
267 buffers for HTTP 304 responses, StreamFile, and Special:Export.
268 Duplicated code merged into wfResetOutputBuffers() and wfClearOutputBuffers()
269 * Special:AllPages : 'next page' link now point to the first title of the next
270 chunk instead of pointing to the last title of current chunk.
271 * (bug 4673) Special:AllPages : add a 'previous' link (new message 'prevpage')
272 * (bug 8121) wfRandom() was not between 0 and 1
273
274 == Languages updated ==
275
276 * Bishnupriya Manipuri (bpy)
277 * Cantonese (zh-yue)
278 * Finnish (fi)
279 * Frisian (fy)
280 * German (de)
281 * Hebrew (he)
282 * Indonesian (id)
283 * Italian (it)
284 * Japanese (ja)
285 * Kazakh (kk)
286 * Latin (la)
287 * Limburgish (li)
288 * Lingala (ln)
289 * Lithuanian (lt)
290 * Norwegian (no)
291 * Occitan (oc)
292 * Old Church Slavonic (cu)
293 * Polish (pl)
294 * Portuguese (pt)
295 * Russian (ru)
296 * Slovak (sk)
297 * Swedish (sv)
298 * Taiwanese/Holo: (bug 8217) changed language code to nan (from zh-min-nan)
299 due to http://www.sil.org/iso639-3/codes.asp?order=639_3&letter=n
300 * Upper Sorbian (hsb)
301 * Vietnamese (vi)
302
303 == Compatibility ==
304
305 MediaWiki 1.9 requires PHP 5 (5.1 recommended). PHP 4 is no longer supported.
306
307 PHP 5.0.x fails on 64-bit systems due to serious bugs with array processing:
308 http://bugs.php.net/bug.php?id=34879
309 Upgrade affected systems to PHP 5.1 or higher.
310
311 MySQL 3.23.x is no longer supported; some older hosts may need to upgrade.
312 At this time we still recommend 4.0, but 4.1/5.0 will work fine in most cases.
313
314
315 == Upgrading ==
316
317 Some minor database changes have been made since 1.7:
318 * new fields and indexes on ipblocks
319 * index change on recentchanges
320
321 Several changes from 1.5 and 1.6 do require updates to be run on upgrade.
322 To ensure that these tables are filled with data, run refreshLinks.php after
323 the upgrade.
324
325 If you are upgrading from MediaWiki 1.4.x or earlier, some major database
326 changes are made, and there is a slightly higher chance that things could
327 break. Don't forget to always back up your database before upgrading!
328
329 See the file UPGRADE for more detailed upgrade instructions.
330
331
332
333 === Caveats ===
334
335 Some output, particularly involving user-supplied inline HTML, may not
336 produce 100% valid or well-formed XHTML output. Testers are welcome to
337 set $wgMimeType = "application/xhtml+xml"; to test for remaining problem
338 cases, but this is not recommended on live sites. (This must be set for
339 MathML to display properly in Mozilla.)
340
341
342 For notes on 1.5.x and older releases, see HISTORY.
343
344
345 === Online documentation ===
346
347 Documentation for both end-users and site administrators is currently being
348 built up on Meta-Wikipedia, and is covered under the GNU Free Documentation
349 License:
350
351 http://www.mediawiki.org/wiki/Documentation
352
353
354 === Mailing list ===
355
356 A MediaWiki-l mailing list has been set up distinct from the Wikipedia
357 wikitech-l list:
358
359 http://mail.wikimedia.org/mailman/listinfo/mediawiki-l
360
361 A low-traffic announcements-only list is also available:
362
363 http://mail.wikimedia.org/mailman/listinfo/mediawiki-announce
364
365 It's highly recommended that you sign up for one of these lists if you're
366 going to run a public MediaWiki, so you can be notified of security fixes.
367
368
369 === IRC help ===
370
371 There's usually someone online in #mediawiki on irc.freenode.net