[TYPO3-core] RFC #13701: Bug: @ini_set() works only on windows, on some unices it could render the function unusable

Christian Kuhn lolli at schwarzbu.ch
Mon May 31 12:39:00 CEST 2010


Hey,

netz-haut - stephan seitz wrote:
> Problem:
>  If php has been built with suhosin and runs via FCGI SAPI, the @ini_set() function call is not ignored (which is obviously expected). Instead, the php process quits without closing the fcgi handler properly.
> Due to the lack of proper fcgi communication, the webserver returns an error 500.
> 
> This can be seen as a faulty php behaviour.
> Anyway, the @ini_set() call does not work on most Unices, except the administrator configured the local MTA to accept manipulation from unprivileged users which is highly discouraged.
> To keep the fix narrow, I suggest to use @ini_set() only if TYPO3_OS == WIN as Windows seems to be the only OS in the wild which accepts such header manipulations without any privilege problems.
> 
> Solution:
>  Use @ini_set() only if TYPO3 is running on Windows.

Committed bug_13701.diff to:
* trunk rev. 7787
* 4.3 rev. 7788

Thanks
Christian


More information about the TYPO3-team-core mailing list