MediaWiki  master
router.php File Reference

Router for the php cli-server built-in webserver. More...

Go to the source code of this file.

Variables

 $acceptGzip = preg_match( '/\bgzip\b/', $_SERVER['HTTP_ACCEPT_ENCODING'] ?? '' )
 
 $content = file_get_contents( $file )
 
if(!is_readable( $file)) $ext = pathinfo( $file, PATHINFO_EXTENSION )
 
if(PHP_SAPI !='cli-server') if(!isset( $_SERVER['SCRIPT_FILENAME'])) $file = $_SERVER['SCRIPT_FILENAME']
 Item class for a filearchive table row. More...
 
 $lines = explode( "\n", file_get_contents( "includes/libs/mime/mime.types" ) )
 
if( $ext=='php') else
 
return true
 

Detailed Description

Router for the php cli-server built-in webserver.

https://www.php.net/manual/en/features.commandline.webserver.php

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 router.php.

Variable Documentation

◆ $acceptGzip

$acceptGzip = preg_match( '/\bgzip\b/', $_SERVER['HTTP_ACCEPT_ENCODING'] ?? '' )

Definition at line 81 of file router.php.

◆ $content

$content = file_get_contents( $file )

Definition at line 78 of file router.php.

Referenced by PoolWorkArticleView\__construct(), InfoAction\addTable(), ResourceLoaderModule\buildContent(), Revision\RevisionStore\checkContent(), MediaWiki\Permissions\PermissionManager\checkUserConfigPermissions(), CleanupSpam\cleanupArticle(), MediaWiki\Storage\PageUpdater\computeEffectiveTags(), Installer\createMainpage(), EditPage\displayPermissionsError(), EditPage\displayViewSourcePage(), WikiPage\doDeleteArticleBatched(), Article\doDeleteUpdates(), WikiPage\doDeleteUpdates(), WikiPage\doEditContent(), Article\doEditContent(), SwiftFileBackend\doGetFileContentsMulti(), FileBackendStore\doGetFileContentsMulti(), EditPage\doPreviewParse(), Revision\RevisionStore\emulateMainSlot_1_29(), ApiEditPage\execute(), BenchmarkJavaScriptMinifier\execute(), BenchmarkJSMinPlus\execute(), MakeTestEdits\execute(), ViewCLI\execute(), DumpRev\execute(), ImportSiteScripts\execute(), GetTextMaint\execute(), ApiStashEdit\execute(), EditCLI\execute(), ApiQueryRevisionsBase\extractAllSlotInfo(), ApiQueryRevisionsBase\extractDeprecatedContent(), ApiQueryRevisionsBase\extractSlotInfo(), ApiFeedContributions\feedItemDesc(), SpecialNewpages\feedItemDesc(), Xml\fieldset(), PopulateContentTables\fillMissingFields(), WikiImporter\finishImportPage(), RefreshLinks\fixRedirect(), FormatMetadata\flattenArrayReal(), CoreTagHooks\gallery(), AutoloadGenerator\generatePHPAutoload(), BaseTemplate\getAfterPortlet(), ContentHandler\getAutoDeleteReason(), FindHooks\getBadHooksFromFile(), PreferencesFormOOUI\getBody(), MediaWiki\Widget\CheckMatrixWidget\getCellTag(), Revision\RevisionRecord\getContent(), ResourceLoaderWikiModule\getContent(), MediaWiki\Storage\PageEditStash\getContentHash(), ResourceLoaderWikiModule\getContentObj(), Article\getContentObject(), EditPage\getContentObject(), ContentHandler\getContentText(), EditPage\getCurrentContent(), ContentHandler\getDataForSearchIndex(), Article\getDeletionUpdates(), WikiPage\getDeletionUpdates(), ApiComparePages\getDiffRevision(), Article\getEmptyPageParserOutput(), FileBackendStore\getFileContentsMulti(), ContentHandler\getForContent(), FindHooks\getHooksFromFile(), FindHooks\getHooksFromLocalDoc(), ChangeTagsRevisionItem\getHTML(), ChangeTagsLogItem\getHTML(), RevDelRevisionItem\getHTML(), BaseTemplate\getIndicators(), MessageCache\getMessageTextFromContent(), PNGMetadataExtractor\getMetadata(), EditPage\getOriginalContent(), ResourceLoaderFileModule\getPackageFiles(), ContentHandler\getPageViewLanguage(), EditPage\getPreloadedContent(), EditPage\getPreviewText(), RawAction\getRawText(), LogFormatter\getRestrictedElement(), Article\getRevisionRedirectTarget(), MediaWiki\Rest\Handler\CompareHandler\getRevisionText(), Revision\getRevisionText(), MediaWiki\Storage\DerivedPageDataUpdater\getSecondaryDataUpdates(), BaseTemplate\getSidebar(), DifferenceEngine\getSlotDiffRenderers(), Revision\RenderedRevision\getSlotParserOutput(), Revision\RenderedRevision\getSlotParserOutputUncached(), Article\getSubstituteContent(), ResourceLoaderFileModule\getTemplates(), ResourceLoaderWikiModule\getTitleInfo(), FileBackendGroup\guessMimeInternal(), DumpRenderer\handleRevision(), FixDefaultJsonContentPages\handleRow(), CoreTagHooks\html(), implodeTokens(), CheckStorage\importRevision(), MediaWiki\Storage\PageEditStash\incrStatsByContent(), CoreTagHooks\indicator(), EditPage\initialiseForm(), initText(), WikiPage\insertRedirect(), EditPage\internalAttemptSave(), MediaWiki\Storage\DerivedPageDataUpdater\isCountable(), WikiPage\isCountable(), MovePage\isValidMoveTarget(), Title\isValidMoveTarget(), JobRunner\loadBackoffs(), MessageCache\loadCachedMessagePageEntry(), Benchmarker\loadFile(), MessageCache\loadFromDB(), Revision\RevisionStore\loadSlotContent(), MediaWiki\Storage\PageUpdater\makeAutoSummary(), MediaWiki\Storage\PageUpdater\makeNewRevision(), LinkFilter\matchEntry(), MediaWiki\Storage\RevisionSlotsUpdate\modifyContent(), MediaWiki\Storage\RevisionSlotsUpdate\newFromContent(), Revision\RevisionStore\newMutableRevisionFromArray(), CoreTagHooks\nowiki(), InfoAction\onView(), SpecialUploadStash\outputContents(), MediaWiki\outputResponsePayload(), MediaWiki\Storage\PageEditStash\parseAndCache(), ApiStashEdit\parseAndStash(), RebuildTextIndex\populateSearchIndex(), CoreTagHooks\pre(), MediaWiki\Storage\DerivedPageDataUpdater\prepareContent(), WikiPage\prepareContentForEdit(), Article\prepareContentForEdit(), PreprocessDump\processRevision(), CompareParsers\processRevision(), DoubleRedirectJob\run(), BenchmarkParse\runParser(), EditPage\runPostMergeFilters(), TextContentHandler\serializeContent(), UnknownContentHandler\serializeContent(), WikitextContentHandler\serializeContent(), Revision\MutableRevisionSlots\setContent(), Revision\MutableRevisionRecord\setContent(), MediaWiki\Storage\PageUpdater\setContent(), ParserOutput\setIndicator(), EditPage\setPreloadedContent(), SpecialRecentChanges\setTopText(), ParserOptions\setupFakeRevision(), EditPage\showEditForm(), SpecialBookSources\showList(), SpecialUndelete\showRevision(), Revision\RevisionStore\storeContentBlob(), LogFormatter\styleRestricedElement(), JobRunner\syncBackoffDeltas(), Xml\textarea(), EditPage\toEditContent(), EditPage\toEditText(), PageArchive\undeleteRevisions(), MessageCache\updateMessageOverride(), WikiPage\updateRevisionOn(), PopulateRevisionLength\upgradeRow(), wfThumbError(), OOUIHTMLForm\wrapForm(), XmlDumpWriter\writeRevision(), XmlDumpWriter\writeSlot(), and XmlDumpWriter\writeText().

◆ $ext

if (!is_readable($file)) $ext = pathinfo( $file, PATHINFO_EXTENSION )

Definition at line 48 of file router.php.

Referenced by ResourceLoaderImage\__construct(), PHPVersionCheck\checkExtensionExistence(), UploadFromChunks\concatenateChunks(), StreamFile\contentTypeFromPath(), HTTPFileStreamer\contentTypeFromPath(), MimeAnalyzer\detectMimeType(), MimeAnalyzer\detectZipType(), Installer\dirIsExecutable(), LocalFileDeleteBatch\doDBInserts(), MemoryFileBackend\doGetLocalCopyMulti(), FSFileBackend\doGetLocalCopyMulti(), SwiftFileBackend\doGetLocalCopyMulti(), MimeAnalyzer\doGuessMimeType(), ApiImageRotate\execute(), SpecialVersion\execute(), LocalFileDeleteBatch\execute(), FileBackend\extensionFromPath(), ImportImages\findFiles(), File\getArchiveThumbUrl(), File\getArchiveUrl(), Revision\MainSlotRoleHandler\getDefaultModel(), SpecialMediaStatistics\getExtensionList(), ApiFormatBase\getFilename(), ResourceLoaderImage\getMimeType(), IEContentAnalyzer\getMimeTypeForVersion(), ApiBase\getModuleSourceInfo(), MWFileProps\getPropsFromPath(), FSFile\getPropsFromPath(), File\getStorageKey(), MediaHandler\getThumbType(), MimeAnalyzer\getTypesForExtension(), File\getUrl(), FileRepo\getZoneUrl(), ForeignAPIRepo\getZoneUrl(), File\getZoneUrl(), FileBackendGroup\guessMimeInternal(), MimeAnalyzer\guessMimeType(), MimeAnalyzer\guessTypesForExtension(), MediaWiki\OutputHandler\handleGzip(), LocalRepo\hiddenFileHasKey(), MimeAnalyzer\improveTypeFromExtension(), MimeAnalyzer\isMatchingExtension(), MimeAnalyzer\loadFiles(), FileRepo\nameForThumb(), MediaWiki\FileBackend\FSFile\TempFSFileFactory\newTempFSFile(), ImagePage\openShowImage(), AutoloadGenerator\readDir(), and wfLoadExtensions().

◆ $file

ArchivedFile $file = $_SERVER['SCRIPT_FILENAME']

Item class for a filearchive table row.

Definition at line 42 of file router.php.

Referenced by IncludableSpecialPage\__construct(), UnlistedSpecialPage\__construct(), DumpBZip2Output\__construct(), DumpGZipOutput\__construct(), DumpDBZip2Output\__construct(), DumpLBZip2Output\__construct(), DumpFileOutput\__construct(), Dump7ZipOutput\__construct(), DumpPipeOutput\__construct(), ImageBuilder\addMissingImage(), Wikimedia\Rdbms\DatabaseSqlite\attachDatabase(), AutoLoader\autoload(), GIFHandler\canAnimateThumbnail(), ApiDelete\canDeleteFile(), ImageHandler\canRender(), TiffHandler\canRender(), XCFHandler\canRender(), WebPHandler\canRender(), FindOrphanedFiles\checkFiles(), Sqlite\checkSqlSyntax(), ForeignResourceManager\cleanUp(), ImagePage\delete(), ApiDelete\deleteFile(), MimeAnalyzer\detectMimeType(), Installer\dirIsExecutable(), SpecialRedirect\dispatchFile(), PopulateImageSha1\doDBUpdates(), MimeAnalyzer\doGuessMimeType(), FileOpPerfTest\doPerfTest(), RevDelFileList\doPostCommitUpdates(), MovePageForm\doSubmit(), MediaWiki\Logger\LegacyLogger\emit(), BenchmarkTidy\execute(), ApiImageRotate\execute(), ExportSites\execute(), ImportSites\execute(), ApiQueryStashImageInfo\execute(), FindMissingFiles\execute(), BenchmarkCSSMin\execute(), BenchmarkJavaScriptMinifier\execute(), CheckImages\execute(), ApiQueryFilearchive\execute(), DeleteArchivedFiles\execute(), GeneratePhpCharToUpperMappings\execute(), MigrateFileRepoLayout\execute(), CleanupUploadStash\execute(), EraseArchivedFile\execute(), PatchSql\execute(), InvalidateUserSesssions\execute(), ImportTextFiles\execute(), GenerateNormalizerDataAr\execute(), DeleteBatch\execute(), RefreshFileHeaders\execute(), CreateCommonPasswordCdb\execute(), MwSql\execute(), SpecialVersion\execute(), MoveBatch\execute(), UpdateSearchIndex\execute(), FindHooks\execute(), UpdateMediaWiki\execute(), RefreshImageMetadata\execute(), ImportImages\execute(), FindDeprecated\execute(), SpecialUndelete\execute(), ResourceLoaderFileModule\expandPackageFiles(), ResourceLoaderOOUIFileModule\extendSkinSpecific(), ExtensionProcessor\extractExtensionMessagesFiles(), ExtensionProcessor\extractMessagesDirs(), FormatMetadata\fetchExtendedMetadata(), FileRepo\fileExists(), ForeignAPIRepo\fileExistsBatch(), FileRepo\fileExistsBatch(), CoreParserFunctions\filepath(), DumpUploads\filterItem(), ImportImages\findAuxFile(), LocalRepo\findBySha1s(), RiffExtractor\findChunks(), RiffExtractor\findChunksFromFile(), Installer\findExtensionsByType(), RepoGroup\findFileFromKey(), LocalRepo\findFiles(), ImportImages\findFiles(), FileRepo\findFiles(), SpecialUndelete\formatFileRow(), SvgHandler\formatMetadata(), ImageListPager\formatValue(), GenerateCollationData\generateFirstChars(), SvgHandler\getAvailableLanguages(), ImageHistoryPseudoPager\getBody(), MWDebug\getCallerDescription(), ExifBitmapHandler\getCommonMetaArray(), SvgHandler\getCommonMetaArray(), FileContentHandler\getDataForSearchIndex(), PurgeChangedFiles\getDeletedPath(), UploadForm\getDescriptionSection(), DjVuHandler\getDimensionInfo(), ImageHandler\getDimensionsString(), SpecialUpload\getDupeWarning(), WikiFilePage\getDuplicates(), MediaHandler\getEntireText(), SpecialUpload\getExistsWarning(), SpecialVersion\getExtAuthorsFileName(), FormatMetadata\getExtendedMetadataFromFile(), FormatMetadata\getExtendedMetadataFromHook(), SpecialVersion\getExtLicenseFileName(), SpecialUndelete\getFileComment(), ImportImages\getFileCommentFromSourceWiki(), WebInstallerDocument\getFileContents(), SpecialUndelete\getFileLink(), WebRequest\getFileName(), MWDebug\getFilesIncluded(), WebRequest\getFileTempname(), SpecialUndelete\getFileUser(), ImportImages\getFileUserFromSourceWiki(), WikiFilePage\getForeignCategories(), MediaHandler\getGeneralLongDesc(), MediaHandler\getGeneralShortDesc(), WebPHandler\getImageSize(), SvgHandler\getImageSize(), ApiQueryImageInfo\getInfo(), ImagePage\getLanguageForRendering(), PNGHandler\getLength(), GIFHandler\getLength(), MWExceptionHandler\getLogMessage(), MWExceptionHandler\getLogNormalMessage(), ImageHandler\getLongDesc(), SvgHandler\getLongDesc(), MediaHandler\getLongDesc(), MediaWiki\Languages\LanguageNameUtils\getMessagesFileName(), InstallerOverrides\getOverrides(), SpecialFilepath\getRedirect(), ExifBitmapHandler\getRotation(), ResourceLoaderFileModule\getScriptURLsForDebug(), ImageHandler\getShortDesc(), MediaHandler\getShortDesc(), ResourceLoaderFileModule\getStyleURLsForDebug(), ImageHistoryList\getThumbForLine(), ForeignAPIFile\getThumbnails(), LocalFile\getThumbnails(), TransformationalImageHandler\getThumbnailSource(), DjVuHandler\getUnserializedMetadata(), Wikimedia\ParamValidator\SimpleCallbacks\getUploadedFile(), WebRequest\getUploadError(), MimeAnalyzer\guessMimeType(), MWExceptionHandler\handleError(), ConvertExtensionToRegistration\handleExtensionMessagesFiles(), MWExceptionHandler\handleFatalError(), ForeignResourceManager\handleTypeMultiFile(), ForeignResourceManager\handleTypeTar(), ThumbnailRenderJob\hitThumbUrl(), ImageBuilder\imageCallback(), ImagePage\imageDupes(), ImageHistoryList\imageHistoryLine(), ImportableUploadRevisionImporter\import(), SiteImporter\importFromFile(), BackupReader\importFromFile(), BackupReader\importFromStdin(), UploadStash\initFile(), MediaWiki\initializeArticle(), AutoloadGenerator\initMediaWikiDefault(), SvgHandler\isAnimatedImage(), MediaWiki\BadFileLookup\isBadFile(), DjVuHandler\isExpensiveToThumbnail(), TiffHandler\isExpensiveToThumbnail(), TransformationalImageHandler\isImageAreaOkForThumbnaling(), MovePage\isValidFileMove(), MovePage\isValidMoveTarget(), Title\isValidMoveTarget(), JobRunner\loadBackoffs(), Benchmarker\loadFile(), BackupDumper\loadPlugin(), Wikimedia\Services\ServiceContainer\loadWiringFiles(), RecompressTracked\logToFile(), DummyLinker\makeImageLink(), Linker\makeImageLink(), DummyLinker\makeMediaLinkFile(), Linker\makeMediaLinkFile(), SqliteInstaller\makeStubDBFile(), DummyLinker\makeThumbLink2(), Linker\makeThumbLink2(), DummyLinker\makeThumbLinkObj(), Linker\makeThumbLinkObj(), MovePage\moveFile(), TransformationalImageHandler\mustRender(), ImportStreamSource\newFromFile(), OldLocalFile\newFromRow(), LocalFile\newFromRow(), ArchivedFile\newFromRow(), ImportStreamSource\newFromURL(), ImageBuilder\oldimageCallback(), DumpUploads\outputItem(), SpecialUploadStash\outputLocalFile(), SpecialUploadStash\outputLocallyScaledThumb(), SpecialUploadStash\outputRemoteScaledThumb(), SpecialUploadStash\outputThumbFromStash(), SpecialUploadStash\parseKey(), ApiUpload\performUpload(), ExtensionRegistry\processAutoLoader(), BackupDumper\processOptions(), DummyLinker\processResponsiveImages(), Linker\processResponsiveImages(), PruneFileCache\prune_directory(), FileRepo\publishBatch(), PurgeChangedFiles\purgeFromArchiveTable(), PurgeChangedFiles\purgeFromLogType(), LocalFile\purgeOldThumbnails(), LocalFile\purgeThumbList(), ForeignAPIFile\purgeThumbnails(), LocalFile\purgeThumbnails(), AutoloadGenerator\readDir(), XmlTypeCheck\readNext(), ResourceLoaderFileModule\readStyleFile(), ResourceLoaderFileModule\readStyleFiles(), MediaWiki\Widget\Search\FullSearchResultWidget\render(), CheckStorage\restoreText(), JpegHandler\rotate(), BitmapHandler\rotate(), ThumbnailRenderJob\run(), ApiQueryDuplicateFiles\run(), ApiQueryAllImages\run(), WikiFilePage\setFile(), ImagePage\setFile(), Dump7ZipOutput\setup7zCommand(), SpecialUndelete\showFileConfirmationForm(), EditPage\showIntro(), SpecialUploadStash\showUploads(), SpecialUpload\showUploadWarning(), JobRunner\syncBackoffDeltas(), Language\transformUsingPairFile(), ApiUpload\transformWarnings(), wfBacktrace(), wfExtractThumbParams(), wfGenerateThumbnail(), wfGetPrecompiledData(), wfThumbIsStandard(), and XmlDumpWriter\writeUpload().

◆ $lines

◆ else

foreach ($lines as $line) if (preg_match('#^text/#', $mime) else)
Initial value:
{
$mime = 'text/plain'

Definition at line 52 of file router.php.

◆ true

return true

Definition at line 92 of file router.php.

Referenced by MediaWiki\Tidy\RemexDriver\__construct(), MemcachedPeclBagOStuff\__construct(), MessageCache\__construct(), DatabaseUpdater\addExtensionField(), DatabaseUpdater\addExtensionIndex(), DatabaseUpdater\addExtensionTable(), ApiErrorFormatter\addMessagesFromStatus(), User\changeAuthenticationData(), Wikimedia\Rdbms\MySQLMasterPos\channelsMatch(), User\checkPasswordValidity(), FileRepo\cleanupBatch(), FileBackendMultiWrite\consistencyCheck(), CommentStore\createComment(), SqlBagOStuff\createTables(), SearchEngineConfig\defaultNamespaces(), FileRepo\deleteBatch(), CleanupUploadStash\doOperations(), DatabaseUpdater\dropExtensionField(), DatabaseUpdater\dropExtensionIndex(), DatabaseUpdater\dropExtensionTable(), ApiHelp\execute(), ApiEditPage\execute(), MigrateFileRepoLayout\execute(), FixDoubleRedirects\execute(), SpecialTags\execute(), ApiFormatJson\execute(), ApiQueryUsers\execute(), EtcdConfig\fetchAllFromEtcdServer(), FileOp\fileExists(), CoreParserFunctions\filepath(), FileOp\fileSha1(), ApiValidatePassword\getAllowedParams(), ApiEmailUser\getAllowedParams(), ApiUndelete\getAllowedParams(), ApiRollback\getAllowedParams(), ApiRevisionDelete\getAllowedParams(), ApiWatch\getAllowedParams(), ApiUserrights\getAllowedParams(), ApiQueryQueryPage\getAllowedParams(), ApiStashEdit\getAllowedParams(), ApiImageRotate\getAllowedParams(), ApiQueryRandom\getAllowedParams(), ApiOptions\getAllowedParams(), ApiMove\getAllowedParams(), ApiQueryAllPages\getAllowedParams(), ApiQueryBlocks\getAllowedParams(), ApiQuerySearch\getAllowedParams(), ApiQueryUsers\getAllowedParams(), ApiQueryDeletedrevs\getAllowedParams(), ApiQueryRevisions\getAllowedParams(), ApiQueryUserContribs\getAllowedParams(), ApiQueryRecentChanges\getAllowedParams(), Wikimedia\Rdbms\DatabaseSqlite\getAttributes(), Wikimedia\Rdbms\DatabasePostgres\getAttributes(), CreditsAction\getAuthor(), OOUIHTMLForm\getButtons(), PostgresUpdater\getCoreUpdateList(), ParserCache\getDirty(), MediaWiki\Auth\UserDataAuthenticationRequest\getFieldInfo(), FileRepo\getFileProps(), FormSpecialPage\getForm(), SpecialChangeContentModel\getFormFields(), MediaWiki\Languages\LanguageFactory\getLanguage(), DatabaseUpdater\getOldGlobalUpdates(), PostgresUpdater\getOldGlobalUpdates(), User\getOptionKinds(), MWFileProps\getPropsFromPath(), UploadForm\getSourceSection(), WikiMap\getWikiIdFromDbDomain(), AuthManagerSpecialPage\handleReauthBeforeExecute(), RollbackAction\handleRollbackRequest(), EditPage\importFormData(), FileRepo\initDirectory(), MemcachedPeclBagOStuff\initializeClient(), ExternalStoreDB\initializeTable(), Language\internalUserTimeAndDate(), MediaWiki\Block\DatabaseBlock\isHardblock(), User\isItemLoaded(), LoginSignupSpecialPage\load(), ApiAuthManagerHelper\loadAuthenticationRequests(), Skin\makeKnownUrlDetails(), JavaScriptMinifier\minify(), DatabaseUpdater\modifyExtensionField(), DatabaseUpdater\modifyExtensionTable(), MediaWiki\Session\UserInfo\newAnonymous(), HTMLCacheUpdateJob\newForBacklinks(), XmlTypeCheck\newFromFilename(), DuplicateJob\newFromJob(), ForeignAPIFile\newFromTitle(), ApiQuery\outputGeneralPageInfo(), ConverterRule\parse(), ConverterRule\parseFlags(), FileDeleteForm\prepareMessage(), SpecialTags\processTagForm(), FileRepo\publishBatch(), FileRepo\quickPurgeBatch(), UploadFromUrl\reallyFetchFile(), DatabaseUpdater\renameExtensionIndex(), FileBackendMultiWrite\resyncFiles(), MigrateFileRepoLayout\runBatch(), EraseArchivedFile\scrubVersion(), Profiler\setTemplated(), ApiMain\setupModule(), EditPage\showHeader(), FileRepo\storeBatch(), MediaWiki\Storage\PageEditStash\storeStashValue(), WebInstallerName\submit(), SyncFileBackend\syncBackends(), SkinTemplate\tabAction(), Wikimedia\Rdbms\DatabaseSqlite\tableExists(), SpecialUploadStash\tryClearStashedUploads(), HTMLUserTextField\validate(), MediaWiki\Session\UserInfo\verified(), and wfStreamThumb().