/**
* Check if we're installing the latest version.
*/
- public function envCheckMediaWikiVersion() {
+ protected function envCheckMediaWikiVersion() {
global $wgVersion;
if( !$this->getVar( '_ExternalHTTP' ) ) {
/**
* Environment check for DB types.
*/
- public function envCheckDB() {
+ protected function envCheckDB() {
global $wgLang;
$compiledDBs = array();
/**
* Environment check for register_globals.
*/
- public function envCheckRegisterGlobals() {
+ protected function envCheckRegisterGlobals() {
if( wfIniGetBool( "magic_quotes_runtime" ) ) {
$this->showMessage( 'config-register-globals' );
}
/**
* Some versions of libxml+PHP break < and > encoding horribly
*/
- public function envCheckBrokenXML() {
+ protected function envCheckBrokenXML() {
$test = new PhpXmlBugTester();
if ( !$test->ok ) {
$this->showMessage( 'config-brokenlibxml' );
* Test PHP (probably 5.3.1, but it could regress again) to make sure that
* reference parameters to __call() are not converted to null
*/
- public function envCheckPHP531() {
+ protected function envCheckPHP531() {
$test = new PhpRefCallBugTester;
$test->execute();
if ( !$test->ok ) {
/**
* Environment check for magic_quotes_runtime.
*/
- public function envCheckMagicQuotes() {
+ protected function envCheckMagicQuotes() {
if( wfIniGetBool( "magic_quotes_runtime" ) ) {
$this->showMessage( 'config-magic-quotes-runtime' );
return false;
/**
* Environment check for magic_quotes_sybase.
*/
- public function envCheckMagicSybase() {
+ protected function envCheckMagicSybase() {
if ( wfIniGetBool( 'magic_quotes_sybase' ) ) {
$this->showMessage( 'config-magic-quotes-sybase' );
return false;
/**
* Environment check for mbstring.func_overload.
*/
- public function envCheckMbstring() {
+ protected function envCheckMbstring() {
if ( wfIniGetBool( 'mbstring.func_overload' ) ) {
$this->showMessage( 'config-mbstring' );
return false;
/**
* Environment check for zend.ze1_compatibility_mode.
*/
- public function envCheckZE1() {
+ protected function envCheckZE1() {
if ( wfIniGetBool( 'zend.ze1_compatibility_mode' ) ) {
$this->showMessage( 'config-ze1' );
return false;
/**
* Environment check for safe_mode.
*/
- public function envCheckSafeMode() {
+ protected function envCheckSafeMode() {
if ( wfIniGetBool( 'safe_mode' ) ) {
$this->setVar( '_SafeMode', true );
$this->showMessage( 'config-safe-mode' );
/**
* Environment check for the XML module.
*/
- public function envCheckXML() {
+ protected function envCheckXML() {
if ( !function_exists( "utf8_encode" ) ) {
$this->showMessage( 'config-xml-bad' );
return false;
/**
* Environment check for the PCRE module.
*/
- public function envCheckPCRE() {
+ protected function envCheckPCRE() {
if ( !function_exists( 'preg_match' ) ) {
$this->showMessage( 'config-pcre' );
return false;
/**
* Environment check for available memory.
*/
- public function envCheckMemory() {
+ protected function envCheckMemory() {
$limit = ini_get( 'memory_limit' );
if ( !$limit || $limit == -1 ) {
/**
* Environment check for compiled object cache types.
*/
- public function envCheckCache() {
+ protected function envCheckCache() {
$caches = array();
foreach ( $this->objectCaches as $name => $function ) {
/**
* Search for GNU diff3.
*/
- public function envCheckDiff3() {
+ protected function envCheckDiff3() {
$names = array( "gdiff3", "diff3", "diff3.exe" );
$versionInfo = array( '$1 --version 2>&1', 'GNU diffutils' );
/**
* Environment check for ImageMagick and GD.
*/
- public function envCheckGraphics() {
+ protected function envCheckGraphics() {
$names = array( wfIsWindows() ? 'convert.exe' : 'convert' );
$convert = $this->locateExecutableInDefaultPaths( $names, array( '$1 -version', 'ImageMagick' ) );
/**
* Environment check for setting $IP and $wgScriptPath.
*/
- public function envCheckPath() {
+ protected function envCheckPath() {
global $IP;
$IP = dirname( dirname( dirname( __FILE__ ) ) );
/**
* Environment check for setting the preferred PHP file extension.
*/
- public function envCheckExtension() {
+ protected function envCheckExtension() {
// FIXME: detect this properly
if ( defined( 'MW_INSTALL_PHP5_EXT' ) ) {
$ext = 'php5';
/**
* TODO: document
*/
- public function envCheckShellLocale() {
+ protected function envCheckShellLocale() {
$os = php_uname( 's' );
$supported = array( 'Linux', 'SunOS', 'HP-UX', 'Darwin' ); # Tested these
/**
* TODO: document
*/
- public function envCheckUploadsDirectory() {
+ protected function envCheckUploadsDirectory() {
global $IP, $wgServer;
$dir = $IP . '/images/';
/**
* Check the libicu version
*/
- public function envCheckLibicu() {
+ protected function envCheckLibicu() {
$utf8 = function_exists( 'utf8_normalize' );
$intl = function_exists( 'normalizer_normalize' );