wiki.techinc.nl/tests/phpunit/includes/api
Máté Szabó 538fb85a17 ApiResult: Make array ordering consistent across PHP versions
PHP 8.2 makes krsort() use the stricter numeric comparison semantics[1]
introduced in PHP 8.0 when it is comparing a numeric key with a
non-numeric key. This changes result ordering in ApiResult for arrays
that contain a mix of numeric and non-numeric keys.

Make the ordering consistent across PHP versions by using an
user-defined comparison function instead that always considers a
non-numeric string to be smaller or equal in a comparison of a
non-numeric and a numeric string.

[1] https://wiki.php.net/rfc/string_to_number_comparison

Bug: T326480
Change-Id: I91d55a1d516e4f0ec31f00a719c6616c73b7f786
2024-04-05 11:22:15 +02:00
..
format tests: Namespace api tests 2024-02-18 15:47:04 +00:00
query Update wgAutoCreateTempUser config defaults 2024-04-03 16:25:47 +00:00
Validator tests: Namespace api tests 2024-02-18 15:47:04 +00:00
ApiAcquireTempUserNameTest.php Update wgAutoCreateTempUser config defaults 2024-04-03 16:25:47 +00:00
ApiBaseTest.php tests: Namespace api tests 2024-02-18 15:47:04 +00:00
ApiBlockInfoTraitTest.php tests: Namespace api tests 2024-02-18 15:47:04 +00:00
ApiBlockTest.php tests: Namespace api tests 2024-02-18 15:47:04 +00:00
ApiChangeContentModelTest.php Improve rate limit tests 2024-03-12 14:00:07 +11:00
ApiCheckTokenTest.php tests: Namespace api tests 2024-02-18 15:47:04 +00:00
ApiClearHasMsgTest.php tests: Namespace api tests 2024-02-18 15:47:04 +00:00
ApiComparePagesTest.php tests: Namespace api tests 2024-02-18 15:47:04 +00:00
ApiContinuationManagerTest.php tests: Namespace api tests 2024-02-18 15:47:04 +00:00
ApiCreateTempUserTraitTest.php tests: Namespace api tests 2024-02-18 15:47:04 +00:00
ApiCSPReportTest.php tests: Namespace api tests 2024-02-18 15:47:04 +00:00
ApiDeleteTest.php tests: Namespace api tests 2024-02-18 15:47:04 +00:00
ApiDisabledTest.php tests: Namespace api tests 2024-02-18 15:47:04 +00:00
ApiEditPageTest.php Remove IDBAccessObject from being implemented in many classes 2024-02-19 10:50:02 +01:00
ApiEntryPointTest.php tests: Namespace api tests 2024-02-18 15:47:04 +00:00
ApiErrorFormatterTest.php tests: Namespace api tests 2024-02-18 15:47:04 +00:00
ApiFeedRecentChangesTest.php Update help text for 'hideanons' in ApiFeedRecentChanges API 2024-02-22 17:20:28 +00:00
ApiLoginTest.php tests: Namespace api tests 2024-02-18 15:47:04 +00:00
ApiLogoutTest.php tests: Namespace api tests 2024-02-18 15:47:04 +00:00
ApiMainTest.php tests: Namespace api tests 2024-02-18 15:47:04 +00:00
ApiMessageTest.php tests: Namespace api tests 2024-02-18 15:47:04 +00:00
ApiMoveTest.php Improve rate limit tests 2024-03-12 14:00:07 +11:00
ApiOpenSearchTest.php tests: Namespace api tests 2024-02-18 15:47:04 +00:00
ApiOptionsTest.php tests: Namespace api tests 2024-02-18 15:47:04 +00:00
ApiPageSetTest.php tests: Namespace api tests 2024-02-18 15:47:04 +00:00
ApiParseTest.php tests: Namespace api tests 2024-02-18 15:47:04 +00:00
ApiProtectTest.php tests: Namespace api tests 2024-02-18 15:47:04 +00:00
ApiPurgeTest.php tests: Namespace api tests 2024-02-18 15:47:04 +00:00
ApiResultTest.php ApiResult: Make array ordering consistent across PHP versions 2024-04-05 11:22:15 +02:00
ApiRevisionDeleteTest.php tests: Namespace api tests 2024-02-18 15:47:04 +00:00
ApiRollbackTest.php tests: Namespace api tests 2024-02-18 15:47:04 +00:00
ApiSetNotificationTimestampIntegrationTest.php tests: Namespace api tests 2024-02-18 15:47:04 +00:00
ApiStashEditTest.php Update wgAutoCreateTempUser config defaults 2024-04-03 16:25:47 +00:00
ApiTestCase.php tests: Namespace api tests 2024-02-18 15:47:04 +00:00
ApiTestContext.php tests: Namespace api tests 2024-02-18 15:47:04 +00:00
ApiUnblockTest.php tests: Namespace api tests 2024-02-18 15:47:04 +00:00
ApiUndeleteTest.php tests: Namespace api tests 2024-02-18 15:47:04 +00:00
ApiUploadTest.php tests: Namespace api tests 2024-02-18 15:47:04 +00:00
ApiUploadTestCase.php tests: Namespace api tests 2024-02-18 15:47:04 +00:00
ApiUsageExceptionTest.php tests: Namespace api tests 2024-02-18 15:47:04 +00:00
ApiUserrightsTest.php tests: Namespace api tests 2024-02-18 15:47:04 +00:00
ApiWatchTest.php tests: Namespace api tests 2024-02-18 15:47:04 +00:00
generateRandomImages.php tests: Namespace api tests 2024-02-18 15:47:04 +00:00
MockApi.php tests: Namespace api tests 2024-02-18 15:47:04 +00:00
MockApiQueryBase.php tests: Namespace api tests 2024-02-18 15:47:04 +00:00
RandomImageGenerator.php tests: Namespace api tests 2024-02-18 15:47:04 +00:00