MediaWiki  REL1_22
PHPVersionError.php File Reference

Display something vaguely comprehensible in the event of a totally unrecoverable error. More...

Go to the source code of this file.

Functions

 wfPHPVersionError ($type)
 Display something vaguely comprehensible in the event of a totally unrecoverable error.

Detailed Description

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 PHPVersionError.php.


Function Documentation

wfPHPVersionError ( type)

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.

Parameters:
string$typeWhich entry point we are protecting. One of:
  • index.php
  • load.php
  • api.php
  • cli
Note:
Since we can't rely on anything, the minimum PHP versions and MW current version are hardcoded here

Definition at line 40 of file PHPVersionError.php.

References are, color, details, from, href, of, page, PHP, some, text, title, updates(), version, and will.