Jump to content

Extension:Suhosin

From mediawiki.org
Revision as of 22:51, 13 August 2012 by KrenairBot (talk | contribs) (This extension appears to be in SVN, not Git.)
MediaWiki extensions manual
Suhosin
Release status: stable
Description Dynamically sets $wgResourceLoaderMaxQueryLength at run time
Author(s) Thomas Gries
Latest version 1.00 (2012-02-17)
MediaWiki 1.19+
License GPL, MIT
Download Template:WikimediaDownload/svn
Translate the Suhosin extension if it is available at translatewiki.net
Issues Open tasks ยท Report a bug

The extension adapts the MediaWiki setting for the ResourceLoader to Suhosin extension setting in php.ini . Details can be found in the program source code and Manual:Suhosin (Hardened-PHP Project patch and extension).


Suhosin is a patch for the PHP code and, differently, an extension which hardens the PHP and aims to protect servers and users from known and unknown flaws in PHP. The Suhosin Hardened-PHP Project homepage is http://www.hardened-php.net/suhosin/ [1] .

The most common use is the dynamic linking of the Suhosin extension suhosin.so into PHP. Using the extension, you can for example in case of problems easily deactive the Suhosin extension in PHP by out-commenting the linking line in php.ini (shown below).

Installation

$IP stands for the Installation Path (or "directory") of your MediaWiki installation, the same directory that holds LocalSettings.php , index.php etc..
  1. Download the files into $IP/extensions/Suhosin
  2. Place the following text in your LocalSettings.php file: require_once("$IP/extensions/Suhosin/Suhosin.php");
  3. Installation can now be verified through your wiki's Special:Version

See also

  1. โ†‘ The Suhosin author can be contacted through the Suhosin Git repository