Always save the cache if stuff was added to it - dont require deriving class to call save

Change-Id: Ifd57c4c3f3d10be97080c9aae5599f6057ea9baf
Memcached PHP client improvements

* When there is a read error, close the socket and mark the server dead,
  instead of continuing to send requests through it, causing a protocol
  violation.
* Also check for write errors.
* Increase the default stream and connect timeouts from 100ms to 500ms.
* Remove the commented-out _safe_fwrite() code that I wrote in 2005,
  that PHP bug is fixed now, so writes can be handled the same way as
  reads.
* Fix E_STRICT errors in get_multi() due to a resource being used as an
  array index.
* For performance, flush the read buffer less often (only on persistent
  connect).
* Move the fread() loop from _load_items() into its own new function.
* Be stricter about stripping expected newlines, don't just run trim() on
  everything.
* Make MemCachedClientforWiki into a simple alias since the distinction
  with MWMemcached was lost many years ago. We even renamed the class
  "MWMemcached".
* Remove vim modeline made incorrect by 19d6293 (Nov 2009).

Change-Id: I81de31049b87038999e37054d8d174a782c78a68
Fixes to Special:Mostlinkedcategories.

- Don't execute the LinkBatch if there are no rows.
- Checks for invalid titles and output a message
  if this is the case.

Change-Id: I934c151204ee26f2bbfe0dbc8068b96ae7465625
Support GENDER in 'passwordreset-emailelement'.

Change-Id: I1b14dbb8d1fb06c688064af4a6a02e03293dc5f0
Rebuild MessagesEn.php

Change-Id: Ibaa94493225ee9f20674c3c30df18f3da8afe28a
Fix grammar issue and add quotes around parameters.

Change-Id: Idd4ff6ac8bc9176a69ad46769e73dc070cd5f3ad
Localisation updates from http://translatewiki.net.

Change-Id: I9939a879f65f468d7d3392b5f41c7db2eeffcc0f
Merge "Rebuild MessagesEn.php"
Merge "Localisation updates from http://translatewiki.net."
Fix wrong return value in Preprocessor::getChildrenOfType

I am not sure, but this looks wrong, because it adds the type to the
array and not the child.
This method is unused in core and wmf extensions, maybe
removing/deprecating is a better idea, but I am not sure, if that is
possible.
I have only see this possible error, while looking through the
preprocessor.

Change-Id: I5b7492d455989a8a3e71b5db6d31091b986c502a
change some rc_new to rc_type == RC_NEW

The field rc_new is obsolete and should be removed, see bug 34320

Change-Id: I411ec2cb0fe3eb078094eded210d4aefee5f8e74
Should be used from fallback.

Change-Id: I91ce057883d902d9dc55a781e200136971c94f02
Tweak 'disambiguations-text'.

Change-Id: I51fc0b48f5af8f9d50f7c968d5ecdcf94406a623
Merge "change some rc_new to rc_type == RC_NEW"
Followup ac8b7d54f81f7b3879a7e21c96b0d182a00618d2 fix broken php detection

Change-Id: Id78f14c220bbaa21b78c0c669a324f6169b3109d
Use a better message when a revision is not found.

This comes from
https://translatewiki.net/wiki/Thread:Support/MediaWiki:Missing-article
that asks for a link to the deletion log in the
'missing-article' message.

Instead of simply changing that message I replaced
it with two news messages 'missing-revision' when trying
to view an old revision and 'difference-missing-revision'
when showing a difference. This removes the "lego"
construction of 'missing-article' with 'missingarticle-rev'
and 'missingarticle-diff' submessages.

I had to keep current messages since they are still
used in extensions.

Change-Id: Ibe60c84cfea922a78b3ad22cc48185a109cd617d
In WebRequest, don't use isset() to check that a variable is null

Change-Id: If4577b911e774e1e0c6a1d90c585bbb027d6b7cd
Split CacheTime into its own file

Change-Id: Iaa546fc5a30dad4bc0a0dbd0dc18dd2e05bf9d7f
Move the list of known password data outputs into a method inside the password implementation itself.

Change-Id: Id785fbe80a6601a603485a02e225443d9c7346fe
Move message importtext into the fieldset

Than it is the same place as message import-interwiki-text

Change-Id: I0eb800b05848cbea123f895180da02cc1b9af913