MediaWiki
1.28.3
|
Check PHP Version, as well as for composer dependencies in entry points, and display something vaguely comprehensible in the event of a totally unrecoverable error. More...
Go to the source code of this file.
Functions | |
wfEntryPointCheck ($entryPoint) | |
Check php version and that external dependencies are installed, and display an informative error if either condition is not satisfied. More... | |
wfGenericError ($type, $mwVersion, $title, $shortText, $longText, $longHtml) | |
Display something vaguely comprehensible in the event of a totally unrecoverable error. More... | |
wfMissingExtensions ($type, $mwVersion, $missingExts) | |
Display an error for a PHP extension not existing. More... | |
wfMissingVendorError ($type, $mwVersion) | |
Display an error for the vendor/autoload.php file not being found. More... | |
wfPHPVersionError ($type, $mwVersion, $minimumVersionPHP, $phpVersion) | |
Display an error for the minimum PHP version requirement not being satisfied. More... | |
Check PHP Version, as well as for composer dependencies in entry points, and display something vaguely comprehensible in the event of a totally unrecoverable error.
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 PHPVersionCheck.php.
wfEntryPointCheck | ( | $entryPoint | ) |
Check php version and that external dependencies are installed, and display an informative error if either condition is not satisfied.
Definition at line 32 of file PHPVersionCheck.php.
References $extensions, array(), as, wfMissingExtensions(), wfMissingVendorError(), and wfPHPVersionError().
wfGenericError | ( | $type, | |
$mwVersion, | |||
$title, | |||
$shortText, | |||
$longText, | |||
$longHtml | |||
) |
Display something vaguely comprehensible in the event of a totally unrecoverable error.
Does not assume access to anything; no globals, no autoloader, no database, no localisation. Safe for PHP4 (and putting this here means that WebStart.php and GlobalSettings.php no longer need to be).
Calling this function kills execution immediately.
string | $type | Which entry point we are protecting. One of:
|
string | $mwVersion | The number of the MediaWiki version used |
string | $title | HTML code to be put within an tag string $shortText string $longText string $longHtml |
Definition at line 93 of file PHPVersionCheck.php.
References $title, $type, color, style, text, and title.
Referenced by wfMissingExtensions(), wfMissingVendorError(), and wfPHPVersionError().
wfMissingExtensions | ( | $type, | |
$mwVersion, | |||
$missingExts | |||
) |
Display an error for a PHP extension not existing.
string | $type | See wfGenericError |
string | $mwVersion | See wfGenericError |
array | $missingExts | The extensions we're missing |
Definition at line 235 of file PHPVersionCheck.php.
References $ext, $type, are, as, PHP, run, that, and wfGenericError().
Referenced by wfEntryPointCheck().
wfMissingVendorError | ( | $type, | |
$mwVersion | |||
) |
Display an error for the vendor/autoload.php file not being found.
string | $type | See wfGenericError |
string | $mwVersion | See wfGenericError |
Definition at line 207 of file PHPVersionCheck.php.
References $type, from, href, on, or, see, some, that, the, and wfGenericError().
Referenced by wfEntryPointCheck().
wfPHPVersionError | ( | $type, | |
$mwVersion, | |||
$minimumVersionPHP, | |||
$phpVersion | |||
) |
Display an error for the minimum PHP version requirement not being satisfied.
string | $type | See wfGenericError |
string | $mwVersion | See wfGenericError |
string | $minimumVersionPHP | The minimum PHP version supported by MediaWiki |
string | $phpVersion | The current PHP version |
Definition at line 178 of file PHPVersionCheck.php.
References $type, and(), are, by, copy, Makefile\download(), from, href, not, of, or, page, PHP, some, the, updates(), version, wfGenericError(), and will.
Referenced by wfEntryPointCheck().