I added a new page https://www.mediawiki.org/wiki/Manual:Suhosin_%28Hardened-PHP_Project_patch_... and linked this on https://www.mediawiki.org/wiki/Manual:$wgResourceLoaderMaxQueryLength
to give everyone who uses PHP+Suhosin a chance to find the settings without running through the MW installation procedure.
Suhosin is the name of a patch, and an extension which aims to harden PHP (Hardened-PHP Projekt). http://www.hardened-php.net/suhosin/
Tom
On 04/02/12 20:24, Thomas Gries wrote:
I added a new page https://www.mediawiki.org/wiki/Manual:Suhosin_%28Hardened-PHP_Project_patch_... and linked this on https://www.mediawiki.org/wiki/Manual:$wgResourceLoaderMaxQueryLength
to give everyone who uses PHP+Suhosin a chance to find the settings without running through the MW installation procedure.
Suhosin is the name of a patch, and an extension which aims to harden PHP (Hardened-PHP Projekt). http://www.hardened-php.net/suhosin/
Tom
I have done a few changes. Are you sure you need to set suhosin.get.max_value_length in php.ini before the extension line? I think we should detect it and use an appropiate default for $wgResourceLoaderMaxQueryLength when Suhosin is active.
Am 04.02.2012 23:49, schrieb Platonides:
Are you sure you need to set suhosin.get.max_value_length in php.ini before the extension line?
A very good point.
I triple-checked now the location of the setting in php.ini and checked its influence on PHP for both the server and the CLI version and restarted the webserver etc. and found:
You are right, the value setting can be before or after the extension declaration in php.ini .
This means: that your idea is great to let MediaWiki auto-detect suhosin.get.max_value_length and to set $wgResourceLoaderMaxQueryLength accordingly !
Perhaps someone can also think about whether the example value (1024) on MediaWiki page is the correct recommendation.
I would like to see a "recommended value" on the MW pages, 2000 ? 4000 ?
I think we should detect it and use an appropiate default for $wgResourceLoaderMaxQueryLength when Suhosin is active.
wikitech-l@lists.wikimedia.org