stefanesser/suhosin — Issue #4: How to reliably check in PHP whether Suhosin is active
Author: Wikinaut
Created: 2012-02-05 01:41:01+00:00
State: open

Regarding to http://stackoverflow.com/a/3384117 a mere check may fail on certain installations.

Is this true ?

Is the following if ( ini_get () ) a reliable solution to check whether Suhosin patch, extension, built-in extension is active at that moment ?

```
if ( ini_get( "suhosin.get.max_value_length" ) ) {
// yes, suhosin is active ...
// do something with ini_get( "suhosin.get.max_value_length" )
}