Go to the documentation of this file.
27 if( PHP_SAPI !=
'cli' ) {
28 die(
"Run me from the command line please.\n" );
31 if( isset( $_SERVER[
'argv'] ) && in_array(
'--icu', $_SERVER[
'argv'] ) ) {
32 dl(
'php_utfnormal.so' );
35 require_once
'UtfNormalDefines.php';
36 require_once
'UtfNormalUtil.php';
37 require_once
'UtfNormal.php';
39 define(
'BENCH_CYCLES', 5 );
42 'testdata/washington.txt' =>
'English text',
43 'testdata/berlin.txt' =>
'German text',
44 'testdata/bulgakov.txt' =>
'Russian text',
45 'testdata/tokyo.txt' =>
'Japanese text',
46 'testdata/young.txt' =>
'Korean text'
57 print
"Testing $filename ($desc)...\n";
58 $data = file_get_contents( $filename );
68 array(
'fastDecompose',
'fastCombiningSort',
'fastCompose' ),
69 #
'quickIsNFC',
'quickIsNFCVerify',
72 if( is_array(
$form ) ) {
84 $st = explode(
' ', microtime() );
85 return (
float)$st[0] + (float)$st[1];
89 #$start = benchTime();
95 #$delta = (benchTime() - $start) / BENCH_CYCLES;
97 $delta = $deltas[0]; # Take shortest time
99 $rate = intval( strlen( $data ) / $delta );
100 $same = (0 == strcmp( $data,
$out ) );
102 printf(
" %20s %6.1fms %12s bytes/s (%s)\n",
105 number_format( $rate ),
106 ($same ?
'no change' :
'changed' ) );
skin txt MediaWiki includes four core it has been set as the default in MediaWiki since the replacing Monobook it had been been the default skin since before being replaced by Vector largely rewritten in while keeping its appearance Several legacy skins were removed in the as the burden of supporting them became too heavy to bear Those in etc for skin dependent CSS etc for skin dependent JavaScript These can also be customised on a per user by etc This feature has led to a wide variety of user styles becoming that gallery is a good place to ending in php
benchmarkForm(&$u, &$data, $form)
usually copyright or history_copyright This message must be in HTML not wikitext $subpages will be ignored and the rest of subPageSubtitle() will run. 'SkinTemplateBuildNavUrlsNav_urlsAfterPermalink' whether MediaWiki currently thinks this is a CSS JS page Hooks may change this value to override the return value of Title::isCssOrJsPage(). 'TitleIsAlwaysKnown' whether MediaWiki currently thinks this page is known isMovable() always returns false. $title whether MediaWiki currently thinks this page is movable Hooks may change this value to override the return value of Title::isMovable(). 'TitleIsWikitextPage' whether MediaWiki currently thinks this is a wikitext page Hooks may change this value to override the return value of Title::isWikitextPage() 'TitleMove' use UploadVerification and UploadVerifyFile instead $form
static $utfCanonicalDecomp
foreach( $testfiles as $file=> $desc) benchmarkTest(&$u, $filename, $desc)
Unicode normalization routines for working with UTF-8 strings.
the array() calling protocol came about after MediaWiki 1.4rc1.
List of Api Query prop modules.
if(PHP_SAPI !='cli') $file
This document is intended to provide useful advice for parties seeking to redistribute MediaWiki to end users It s targeted particularly at maintainers for Linux since it s been observed that distribution packages of MediaWiki often break We ve consistently had to recommend that users seeking support use official tarballs instead of their distribution s and this often solves whatever problem the user is having It would be nice if this could such as
static loadData()
Load the basic composition data if necessary.