Commit graph

1286 commits

Author SHA1 Message Date
libraryupgrader 55391e75ee build: Updating mediawiki/mediawiki-codesniffer to 18.0.0
Change-Id: I9fd09d38314811555b92ad92d6847892ad3150cb
2018-04-14 05:57:25 +00:00
Jayprakash12345 7da38c8e10 Update extensions to take advantage of parser test autodiscovery
Bug: T170037
Change-Id: Ifeffbf7a27dfd4915998159617d37d4d9b9a1c17
2018-04-13 15:07:17 +00:00
jenkins-bot 3ed4367352 Merge "Drop support for generating normalization tables with MW < 1.25" 2018-04-11 13:11:55 +00:00
jenkins-bot cdfddebc15 Merge "Move classes into includes/" 2018-04-11 13:11:54 +00:00
Translation updater bot 9e3d8328d1 Localisation updates from https://translatewiki.net.
Change-Id: I3ab4680669d1dfb34a44237bfbb8beca2af76af5
2018-04-10 22:15:40 +02:00
Kunal Mehta f26ecf167d Drop support for generating normalization tables with MW < 1.25
Change-Id: Id9370c2bcab06a22515c6d94bd380f7dc46e81d0
2018-04-09 08:54:22 -07:00
Kunal Mehta 1fad4da137 Move classes into includes/
Change-Id: Ida2c9cac348fe31ecf8d8c0a352e899bcbff1ebf
2018-04-09 08:54:22 -07:00
Gergő Tisza 2664e63038
Use CodeEditor and SyntaxHighlight when available
There is no reason not to default to using these when they are there.

Bug: T191737
Change-Id: Id1b918a538a45c1279e3e4ad87b2a40f8d41478d
2018-04-09 11:28:34 +02:00
Translation updater bot cb5a396fcd Localisation updates from https://translatewiki.net.
Change-Id: I1bc77eefedde716bcdc337c3870977353f3e92f9
2018-04-07 22:34:39 +02:00
Umherirrender b64e49de99 Fix parameter docs
* Remove @return from __construct
* Declare nullable parameter in @param
* Remove @return from getSoftwareInfo

Change-Id: I037eec0e74ac11e22a3a32ca183cb67e27ce8cd6
2018-04-05 13:09:10 +02:00
Mark A. Hershberger d6a081415e
Use MediaWiki\SuppressWarnings around trigger_error('') instead @
The @ sign requires @codingStandardsIgnoreLine Generic.PHP.NoSilencedErrors.Discouraged

\MediaWiki\suppressWarnings() doesn't need a @codingStandardsIgnoreLine.

Bug: T191247
Change-Id: I8ce2a49c9327a452cf5fa64f96c7cde55702bf28
2018-04-03 17:56:52 -04:00
MacFan4000 a51e3c3ee8 Update LuaSandbox link on Special:Version
Change-Id: Ib014036230674b5b3325a289d57c056aa376f7bd
2018-04-02 21:33:56 +00:00
Translation updater bot 90e7eb352c Localisation updates from https://translatewiki.net.
Change-Id: I314da0310300304fed97a525711c9546a1492fdc
2018-04-01 09:39:13 +02:00
libraryupgrader 7973dff09a build: Updating mediawiki/mediawiki-codesniffer to 17.0.0
The following sniffs are failing and were disabled:
* MediaWiki.Commenting.PhpunitAnnotations.NotTestClass

The following sniffs now pass and were enabled:
* MediaWiki.Commenting.FunctionComment.MissingParamComment

Change-Id: I56ea06397c7c2b586cc9dca2425535eb565ea231
2018-03-29 05:35:12 +00:00
Translation updater bot ee928717b6 Localisation updates from https://translatewiki.net.
Change-Id: I1fd387e3586c90d9e3248b8d0182527b91fdd670
2018-03-24 22:29:39 +01:00
Translation updater bot 53cbdf07f4 Localisation updates from https://translatewiki.net.
Change-Id: I3f7553fe92f3be240c0a7b6c8e7daf2d9f8841da
2018-03-23 22:13:18 +01:00
Thiemo Mättig 856217d7ad Stop using deprecated class from UtfNormal library
Change-Id: I966a68c52eb4a59d91dc8a597c364f4e1ac44073
2018-03-22 11:06:15 +01:00
Translation updater bot da15d0b15a Localisation updates from https://translatewiki.net.
Change-Id: Ice4d4c23a553e8036b6015a9ad2ad8703cd58cdf
2018-03-19 22:19:56 +01:00
jenkins-bot d57a47bb29 Merge "Rename test classes to end with Test" 2018-03-18 03:49:22 +00:00
Translation updater bot 369aa0649b Localisation updates from https://translatewiki.net.
Change-Id: Id4252ccd6f09ad33339aca316e2e567848c3dafc
2018-03-11 22:31:15 +01:00
Umherirrender 44fe3df9bf Rename test classes to end with Test
Change-Id: I510e5516d56b28d26510423da840b4b496a10833
2018-03-10 14:25:38 +01:00
libraryupgrader 1df0fc6eaa build: Updating jakub-onderka/php-parallel-lint to 1.0.0
Change-Id: Icfff6679043fe9367c70db640dfe71b3938c5ad5
2018-03-10 04:01:42 +00:00
Translation updater bot 90d884d808 Localisation updates from https://translatewiki.net.
Change-Id: Icb60ab0573879499e62db68f3571c5d49e510c61
2018-03-06 22:18:50 +01:00
Translation updater bot 8e747ef890 Localisation updates from https://translatewiki.net.
Change-Id: Ia5761f794b08a83d62cb42f1ff468897190a2de6
2018-03-02 22:31:28 +01:00
Translation updater bot ae2c9140bc Localisation updates from https://translatewiki.net.
Change-Id: Ieeb6e748322906333e11e6c4b4344d2d72859cf9
2018-03-01 22:42:00 +01:00
jenkins-bot 0da1f424fa Merge "Add namespace names for Sindhi" 2018-02-28 09:33:06 +00:00
Translation updater bot f541d315e1 Localisation updates from https://translatewiki.net.
Change-Id: Ic274f79bf093a5321cc0fe07e268646d5531f7a5
2018-02-27 22:25:56 +01:00
Translation updater bot 9663f32361 Localisation updates from https://translatewiki.net.
Change-Id: Ia3b95b1518a9c3b4247ba4969d75bfcdfc80b34e
2018-02-26 22:20:48 +01:00
libraryupgrader 48492a4cf4 build: Updating mediawiki/mediawiki-codesniffer to 16.0.1
Change-Id: I5a08a0305dbd340b347b9152075e70d8a717c7ed
2018-02-25 10:58:53 +00:00
Kunal Mehta 27a7eb0f58 Use namespaced PHPUnit\Framework\TestCase
For future compatibility with PHPUnit 6.

Bug: T188166
Change-Id: Id1e951d7e9a2092500408ab865427db45c025bde
2018-02-24 00:23:15 -08:00
Translation updater bot c5589f012c Localisation updates from https://translatewiki.net.
Change-Id: Idc13fa021f205483236fa03adda3ca2f142b0214
2018-02-23 23:01:50 +01:00
Translation updater bot 3966323873 Localisation updates from https://translatewiki.net.
Change-Id: I2e7e6b8b54866d3bafbffb286e603fc8300f794d
2018-02-22 23:22:27 +01:00
jhsoby ba9e0a9d02 Add namespace names for Sindhi
Bug: T186943
Change-Id: I17c64c9884fdb6b1259f1c93378d4f8e0a1894e2
2018-02-19 14:30:40 +00:00
Translation updater bot 69de9ca845 Localisation updates from https://translatewiki.net.
Change-Id: I8be6c1ab8833c9ad718a4e489e8ef36cb487cbd7
2018-02-18 22:41:05 +01:00
libraryupgrader 90e6f2f3f1 build: Updating mediawiki/minus-x to 0.3.1
Change-Id: I6b93b27c81042db74923086c378b8f37a3f4d928
2018-02-18 08:24:23 +00:00
libraryupgrader 6d1a6ffb01 build: Updating mediawiki/mediawiki-codesniffer to 16.0.0
The following sniffs are failing and were disabled:
* MediaWiki.Commenting.MissingCovers.MissingCovers

Change-Id: I07b2cf945f44fd5532812a712f7dd40d2f208be2
2018-02-15 13:57:18 +00:00
Jayprakash12345 9808ec80dc Update at-ease calls in extensions
Bug: T187037
Change-Id: I008412187a23dc1a4b23eda12b215d60333f525e
2018-02-12 18:37:16 +00:00
Translation updater bot db5323238f Localisation updates from https://translatewiki.net.
Change-Id: I475d58badd87e7cb89af5e1488dd0c0080dd7766
2018-02-12 09:23:52 +01:00
jenkins-bot 2b0314e4ab Merge "Use PSR-3 logging instead of wfDebug()" 2018-02-11 14:54:14 +00:00
Kunal Mehta d8687a5c82 Use PSR-3 logging instead of wfDebug()
Change-Id: Id9fe3adb18e07e16703e9da878278d9a3d25f554
2018-02-11 05:58:31 +00:00
jenkins-bot 8d844ef647 Merge "Sanify handling of array keys" 2018-02-10 09:21:31 +00:00
Brad Jorsch 6c69cd2ddf SECURITY: Reduce precision on os.clock() to mitigate timing attacks
While there is currently no demonstrated vulnerability, this provides
additional hardening against SPECTRE-like attacks, and any potential
future timing attacks.

Bug: T184156
Change-Id: I2b5cc177bded1a9b5600d77116e67817841204be
2018-02-09 15:24:02 -08:00
jenkins-bot ca1c84f928 Merge "LuaStandalone: Improve passing of numeric values" 2018-02-09 23:15:57 +00:00
jenkins-bot 5947ee9700 Merge "LuaStandalone: Properly handle serialization errors" 2018-02-09 23:14:39 +00:00
jenkins-bot e5b57f10ee Merge "Invalidate slow function call cache to avoid warnings" 2018-02-09 19:00:32 +00:00
Kunal Mehta 03d256ffac Invalidate slow function call cache to avoid warnings
The serialization format of PSquare changed so that trying to unserialize
an older version of the class results in data corruption, causing
"Division by zero" warnings.

Bug: T186839
Change-Id: Ie5d68d98402d0ab74b800c874ae50bc36e23e2bf
2018-02-09 10:50:40 -08:00
Translation updater bot 05501a4bb9 Localisation updates from https://translatewiki.net.
Change-Id: Ifad5abe4a04ca6707e77f67b472181987d7fd14b
2018-02-09 09:41:15 +01:00
Brad Jorsch 790311faa3 Sanify handling of array keys
When passing an array from PHP to Lua, stringify integer array keys
beyond the range a lua_Number can represent.

When passing a table from Lua to PHP,
* Avoid exponential encoding for integer keys beyond 1e14, so Zend PHP
  will interpret them as integers.
* Always encode integer keys as integers, so HHVM will interpret them as
  integers.
* Detect collisions, e.g. { [0] = 'foo', ["0"] = 'bar' }

Bug: T186240
Change-Id: I078068ed57df078248a307608381614bdfc70801
2018-02-06 17:13:20 -05:00
Brad Jorsch 9aca31681a LuaStandalone: Improve passing of numeric values
For integers from Lua to PHP, make sure they won't use exponential
notation that will confuse unserialize(), and pass the integer size from
PHP so Lua can know which numbers are representable as integers.

For doubles in both directions, increase the precision to avoid
truncation of the least significant bits.

Change-Id: Icfaff71cab0ee1aac04acf752d108049b5569380
2018-02-06 16:54:52 -05:00
Brad Jorsch 2a70e8b3f1 LuaStandalone: Properly handle serialization errors
When we're making a call from Lua to PHP, serialization errors should be
propagated to whatever in Lua made the call. That works fine.

But when we're returning data in response to a call from PHP, if there's
a serialization error we need to catch it and tell PHP about it.
Otherwise PHP just gets a useless "the interpreter exited".

Change-Id: Iaac498fa2e486631d38e2366977b360140756519
2018-02-06 15:53:40 -05:00