Extension: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 | |
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..
- Download the files into
$IP/extensions/Suhosin
- Place the following text in your LocalSettings.php file: require_once("$IP/extensions/Suhosin/Suhosin.php");
- Installation can now be verified through your wiki's Special:Version
See also
- โ The Suhosin author can be contacted through the Suhosin Git repository