Manual:Suhosin

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 Projekt homepage is http://www.hardened-php.net/suhosin/.

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

Suhosin patch settings for use with MediaWiki
When you downloaded and installed the extension suhosin.so from http://www.hardened-php.net/suhosin/download.html, then you need to set up your  in a specific way for MediaWiki (example) suhosin.get.max_value_length = 1024
 * you need to set the value before loading the extension

extension=suhosin.so and in your MediaWiki  add a corresponding setting for $wgResourceLoaderMaxQueryLength $wgResourceLoaderMaxQueryLength = 1024;
 * out-comment the following line if you want to run your PHP without Suhosin patch
 * for example, if the extension makes trouble