[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 Mar 1 16:18:18 CET 2010


Hey,

netz-haut - stephan seitz wrote:
> Type: Bugfix
> 
> Bugtracker references:
>  http://bugs.typo3.org/view.php?id=13701
> 
> Branches:
>  TYPO3_4-3 and trunk
>  Different patches attached.
>  The patch for trunk includes additional functionality to respect the OS for
>  the latter mail() calls.
> 
> 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.
> 
> Notes:
>  See referred bugtracker entry.

Confirmed. I've seen this behaiviour, too, but didn't dig into this nor 
create a proper diff. My personal temp-solution was to uncomment the 
ini_set(), but it should just be restricted to WIN, like you did it.

Why did you add $this->forceReturnPath to $returnPath ?

Regards
Christian


More information about the TYPO3-team-core mailing list