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
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
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 message importtext into the fieldset

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

Change-Id: I0eb800b05848cbea123f895180da02cc1b9af913
Merge "Followup ac8b7d54f81f7b3879a7e21c96b0d182a00618d2 fix broken php detection"
Merge "Move message importtext into the fieldset"
Add @deperecation stuff to message functions

Change-Id: I69168ed9d850baf02b3dd7c8bd0e820f3f00f43f
[FileBackend] Fixed bogus sync-check status errors.

Change-Id: Iefb3a9575e241cfdc3220301a89667d6ad96a307
Merge "[FileBackend] Fixed bogus sync-check status errors."
Localisation updates from http://translatewiki.net.

Change-Id: If5dfc80fe392a76f111dcfe23cdd2432022bc0ee
Merge "Use a better message when a revision is not found."
Merge "Fixes to Special:Mostlinkedcategories."
Merge "Memcached PHP client improvements"
Merge "Always save the cache if stuff was added to it - dont require deriving class to call save"
[FileBackend] Fixed curl call broken by 10ec7a1.

Change-Id: I661d2f586d3e3177c2f233153787597095872535