[TYPO3-core] RFC: Bug #5548: cli_dispatch.phpsh will not run on CGI API
Steffen Gebert
steffen at steffen-gebert.de
Tue Jan 20 12:11:29 CET 2009
Hi,
This is a patch request.
BT: http://bugs.typo3.org/view.php?id=5548
Branch: trunk, 4_2
Description:
As already stated in a longer discussion [1], cli_dispatch.phpsh doesn't work in CGI environments as PHP_SAPI is 'cgi', not 'cli'.
This blocks CGI users and forces them to patch TYPO3 core code, if they want to use cli_dispatch.phpsh
Solution:
Don't exit if PHP_SAPI != 'cgi', but also weather it starts with 'cgi' (this will accept 'cgi-fcgi', too (see [2], also mentioned by Michiel)).
I've overworked Masi's patch to accept cgi* as SAPI and to conform to CGL.
Regards
Steffen
[1] <http://lists.netfielders.de/pipermail/typo3-team-core/2007-July/008562.html>
[2] <http://lv2.php.net/manual/en/function.php-sapi-name.php>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 5548_cli_dispatch.phpsh_v2.patch
Type: text/x-patch
Size: 852 bytes
Desc: not available
Url : http://lists.netfielders.de/pipermail/typo3-team-core/attachments/20090120/8e75f592/attachment.bin
More information about the TYPO3-team-core
mailing list