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 [1] .

The most common use is the dynamic linking of the Suhosin extension 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).

Suhosin extension settings for use with MediaWikiEdit

If you download and install[2] the Suhosin PHP extension from , you must explicitly set suhosin.get.max_value_length in your php.ini to a value higher than 2000 (to overwrite the built-in default of 512, which is too low):

suhosin.get.max_value_length = 2048
; comment out the following line if you want to run your PHP without Suhosin extension
; for example, if the extension makes trouble

When installing MediaWiki, the MediaWiki installer will auto-detect what the current value of suhosin.get.max_value_length is, and warn you if it is too low.


  1. The Suhosin author can be contacted through the Suhosin Git repository
  2. Instructions for installing the Suhosin extension