maintenance/install-utils.inc File Reference

This file contains functions used by the install script (config/index.php) and maintenance scripts. More...

Go to the source code of this file.

Classes

class  PhpXmlBugTester
 Test for PHP+libxml2 bug which breaks XML input subtly with certain versions. More...
class  PhpRefCallBugTester
 Test for PHP bug #50394 (PHP 5.3.x conversion to null only, not 5.2.x). More...

Functions

 install_version_checks ()
 readconsole ($prompt= '')
 findExecutable ($name)
 readlineEmulation ($prompt)
 dbsource ($fname, $db=false)
 mw_get_session_save_path ()
 Get the value of session.save_path.
 mw_have_dl ()
 Is dl() available to us?


Detailed Description

This file contains functions used by the install script (config/index.php) and maintenance scripts.

It is not loaded in normal web requests.

Definition in file install-utils.inc.


Function Documentation

dbsource ( fname,
db = false 
)

Definition at line 172 of file install-utils.inc.

References $fname, print, wfDeprecated(), and wfGetDB().

findExecutable ( name  ) 

Definition at line 126 of file install-utils.inc.

References $name, $path, and wfIsWindows().

Referenced by readlineEmulation().

install_version_checks (  ) 

Definition at line 10 of file install-utils.inc.

References $test, and $wgCommandLineMode.

mw_get_session_save_path (  ) 

Get the value of session.save_path.

Per http://www.php.net/manual/en/ref.session.php#ini.session.save-path, this might have some additional preceding parts which need to be ditched

Returns:
string

Definition at line 200 of file install-utils.inc.

References $path.

mw_have_dl (  ) 

Is dl() available to us?

According to http://www.php.net/manual/en/function.dl.php, dl() is *not* available when `enable_dl` is off, or under `safe_mode`

Returns:
bool

Definition at line 214 of file install-utils.inc.

References wfIniGetBool().

readconsole ( prompt = ''  ) 

Definition at line 98 of file install-utils.inc.

References readlineEmulation().

readlineEmulation ( prompt  ) 

Definition at line 139 of file install-utils.inc.

References $command, findExecutable(), print, wfEscapeShellArg(), wfIsWindows(), and wfShellExec().

Referenced by readconsole().


Generated on Sat Apr 30 22:57:28 2011 for MediaWiki by  doxygen 1.5.9