MediaWiki
1.23.2
|
Test feeds random 16-byte strings to both the pure PHP and ICU-based UtfNormal::cleanUp() code paths, and checks to see if there's a difference. More...
Go to the source code of this file.
Functions | |
donorm ( $str) | |
randomString ( $length, $nullOk, $ascii=false) | |
showDiffs ( $a, $b) | |
Variables | |
$n = 0 | |
$size = 16 | |
if (PHP_SAPI !='cli') | |
Test feeds random 16-byte strings to both the pure PHP and ICU-based UtfNormal::cleanUp() code paths, and checks to see if there's a difference.
Will run forever until it finds one or you kill it.
Copyright (C) 2004 Brion Vibber brion @pob ox.co mhttps://www.mediawiki.org/
This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version.
This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. http://www.gnu.org/copyleft/gpl.html
Definition in file RandomTest.php.
donorm | ( | $str | ) |
Definition at line 49 of file RandomTest.php.
References UtfNormal\UNORM_NFC, UTF8_FFFE, UTF8_FFFF, and UTF8_REPLACEMENT.
randomString | ( | $length, | |
$nullOk, | |||
$ascii = false |
|||
) |
Definition at line 41 of file RandomTest.php.
References $out.
showDiffs | ( | $a, | |
$b | |||
) |
Definition at line 60 of file RandomTest.php.
$n = 0 |
Definition at line 76 of file RandomTest.php.
Referenced by MWMemcached\_flush_read_buffer(), FileBackendTest\assertHasHeaders(), FileOpBatch\attempt(), JSParser\Block(), SkinTemplate\buildContentNavigationUrls(), ChangesFeed\buildItems(), File\checkExtensionCompatibility(), LanguageWa\date(), DiffEngine\diag(), Installer\envCheckMemory(), GetLagTimes\execute(), BatchedQueryRunner\execute(), FixDoubleRedirects\execute(), AttachLatest\execute(), ApiQueryUsers\execute(), SpecialRunJobs\executeJobs(), JSParser\Expression(), ApiQueryRevisions\extractRowInfo(), PathRouter\extractTitle(), UtfNormal\fastCombiningSort(), UtfNormal\fastCompose(), UtfNormal\fastDecompose(), DatabaseMysqlBase\fieldInfo(), DatabaseMssql\fieldName(), DatabaseMysqlBase\fieldName(), DatabaseSqlite\fieldName(), DatabaseOracle\fieldName(), DatabaseMysqlBase\fieldType(), ForeignAPIRepo\fileExistsBatch(), findAuxFile(), FixSlaveDesync\findPageLatestCorruption(), PostgresField\fromText(), RevisionDeleter\getChanges(), ApiParamInfo\getClassInfo(), File\getExtension(), UploadStash\getExtensionForPath(), SpecialRedirect\getFormFields(), SpecialPageFactory\getLocalNameFor(), RandomPage\getNsList(), SpecialExport\getPagesFromCategory(), SpecialExport\getPagesFromNamespace(), Skin\getUndeleteLink(), ZipDirectoryReader\hexDump(), hexSequenceToUtf8(), BagOStuff\incr(), lessc_formatter_classic\indentStr(), WfGetCallerTest\intermediateFunction(), PageArchive\isDeleted(), Title\isDeleted(), UploadBase\isThumbName(), FormatMetadata\makeFormattedData(), DateFormatter\makeIsoMonth(), SpecialSearch\makeSearchLink(), JSMinPlus\min(), DatabaseMysql\mysqlFetchField(), DatabaseMysqli\mysqlFetchField(), DatabaseMysql\mysqlFieldName(), DatabaseMysqli\mysqlFieldName(), DatabaseMysql\mysqlFieldType(), DatabaseMysqli\mysqlFieldType(), Title\nameOf(), JSParser\nest(), SearchMySQL\normalizeText(), DatabaseMysqlBase\numRows(), JSParser\ParenExpression(), JSParser\parse(), JSMinPlus\parseTree(), RebuildTextIndex\populateSearchIndex(), SpecialSearch\powerSearchOptions(), FormatJson\prettyPrint(), UtfNormal\quickIsNFC(), UtfNormal\quickIsNFCVerify(), EnhancedChangesList\recentChangesBlockGroup(), JSParser\reduce(), JSParser\Script(), AjaxResponse\sendHeaders(), SpecialAllpages\showChunk(), SpecialPrefixindex\showPrefixChunk(), JSParser\Statement(), JSParser\Statements(), WikiPageTest\testDoDeleteArticle(), WikiPageTest\testDoDeleteUpdates(), WikiPageTest\testDoEdit(), WikiPageTest\testDoEditContent(), MediaWiki\triggerJobs(), JSParser\Variables(), and OutputPage\wrapWikiMsg().
$size = 16 |
Definition at line 75 of file RandomTest.php.
Referenced by SVGReader\__construct(), ProtectedTitlesPager\__construct(), UploadBaseTest\createFileOfSize(), JobQueueFederated\doGetSiblingQueueSizes(), JobQueueRedis\doGetSiblingQueueSizes(), JobQueueDB\doGetSize(), FileBackendTest\doTestGetFileStat(), SpecialProtectedtitles\execute(), SpecialProtectedpages\execute(), OrphanStats\execute(), ZipDirectoryReader\execute(), ApiTestCaseUpload\fakeUploadChunk(), ApiTestCaseUpload\fakeUploadFile(), ZipDirectoryReader\findOldCentralDirectory(), ZipDirectoryReader\findZip64CentralDirectory(), Language\formatComputingNumbers(), ShortPagesPage\formatResult(), SpecialMergeHistory\formatRevisionRow(), SpecialUndelete\formatRevisionRow(), Linker\formatRevisionSize(), Language\formatSize(), WikiFilePage\getDuplicates(), MWDebug\getFilesIncluded(), ImageHandler\getLongDesc(), SvgHandler\getLongDesc(), WikiRevision\getSize(), SpecialProtectedpages\getSizeLimit(), ZipDirectoryReader\getStructSize(), Preferences\getThumbSizes(), Xml\input(), Xml\inputLabel(), Xml\inputLabelSep(), JpegMetadataExtractor\jpegExtractMarker(), Block\newLoad(), RecentChange\notifyNew(), ImagePage\openShowImage(), SpecialUploadStash\outputContents(), Xml\password(), ArrayUtilsTest\provideFindLowerBound(), PNGMetadataExtractor\read(), ZipDirectoryReader\readCentralDirectory(), RebuildRecentchanges\rebuildRecentChangesTablePass2(), JpegMetadataExtractor\segmentSplitter(), WikiRevision\setSize(), SpecialSearch\showHit(), SpecialProtectedpages\showOptions(), LanguageTest\testFormatSize(), ExifRotationTest\testRotationRendering(), ExifRotationTest\testRotationRenderingNoAutoRotate(), DatabaseMssql\textFieldSize(), DatabaseBase\textFieldSize(), ZipDirectoryReader\unpack(), and wfExtractThumbParams().
if(PHP_SAPI !='cli') |
Definition at line 29 of file RandomTest.php.