Go to the documentation of this file.
13 $this->markTestSkipped(
'Native CDB support is not available' );
22 if ( !is_writable(
$dir ) ) {
23 $this->markTestSkipped(
"Temp dir isn't writable" );
33 for ( $i = 0; $i < 1000; $i++ ) {
39 if ( !isset( $data[$key] ) ) {
48 md5_file( $phpcdbfile ),
49 md5_file( $dbacdbfile ),
56 foreach ( $data
as $key =>
$value ) {
61 $v1 = $r1->get( $key );
62 $v2 = $r2->get( $key );
64 $v1 = $v1 ===
false ?
'(not found)' : $v1;
65 $v2 = $v2 ===
false ?
'(not found)' : $v2;
67 # cdbAssert( 'Mismatch', $key, $v1, $v2 );
74 $len = mt_rand( 0, 10 );
76 for ( $j = 0; $j < $len; $j++ ) {
77 $s .= chr( mt_rand( 0, 255 ) );
83 private function cdbAssert( $msg, $key, $v1, $v2 ) {
87 $msg .
', k=' . bin2hex( $key )
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
Writer class which uses the DBA extension.
cdbAssert( $msg, $key, $v1, $v2)
Test the CDB reader/writer @covers CdbWriterPHP @covers CdbWriterDBA.
static haveExtension()
Returns true if the native extension is available.
the array() calling protocol came about after MediaWiki 1.4rc1.
List of Api Query prop modules.
Reader class which uses the DBA extension.
wfTempDir()
Tries to get the system directory for temporary files.
if(count( $args)==0) $dir
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