#24502 [Asn]: Fast CGI interface is broken
| From: | gwang at litespeedtech dot com | Date: | Mon, 18 Aug 2003 18:32:12 +0000 |
| Subject: | #24502 [Asn]: Fast CGI interface is broken | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-46129@lists.php.net to get a copy of this message | ||
ID: 24502
User updated by: gwang at litespeedtech dot com
Reported By: gwang at litespeedtech dot com
Status: Assigned
Bug Type: CGI related
Operating System: Linux
-PHP Version: 4.3.3RC3-dev
+PHP Version: 4.3.2
Assigned To: shane
New Comment:
Nothing changed in 4.3.3RC4.
Regards,
LiteSpeed Team
Previous Comments:
------------------------------------------------------------------------
[2003-08-06 20:03:38] gwang at litespeedtech dot com
This bug has not been fixed yet in 4.3.3RC2.
Regards,
LiteSpeed Team
------------------------------------------------------------------------
[2003-07-07 06:06:50] sniper@php.net
Assigned to the maintainer.
------------------------------------------------------------------------
[2003-07-04 18:04:00] gwang at litespeedtech dot com
Also, when I test it with phpinfo(), if the PATH_INFO is not empty,
PHP_SELF is set to PATH_INFO instead of SCRIPT_NAME, then the PHP and
Zend logos are missing.
------------------------------------------------------------------------
[2003-07-04 16:53:44] gwang at litespeedtech dot com
Description:
------------
Fast CGI interface is broken in both 4.3.2 4.3.3rc1 and the most recent
snap shot for web server with Fast CGI implementation that follows CGI
specification.
Our LiteSpeed web server (at http://www.litespeedtech.com
) supports
PHP through the Fast CGI interface (faster than Apache's mod_php). Our
Fast CGI implementation follows the CGI specification and set
environment variables exactly as what Apache's CGI does. It set
SCRIPT_FILENAME=/docroot/info.php and works fine with 4.3.1, but the
interface is broken since 4.3.2.
Our test shows that
SG(request_info).path_translated
is not populated with the value of SCRIPT_FILENAME but is NULL.
Further study shows that the root cause is at cgi-main.c:812 in release
4.3.2
> script_path_translated=env_path_translated;
set script_path_translated to NULL or whatever the value of
PATH_TRANSLATED. If we take that line out, every thing works fine.
We can use --enable-discard-path to avoid it but it is forbidden in
README.FastCGI (We don't know why based on our reading of the source
code).
I think one possilbe fix is to avoid that line of code for FastCGI, but
may need to add some code for Apache's mod_fastcgi. Or change the
document, say: --enable-discard-path should be used for web server
follows CGI Specs.
Sincerely,
LiteSpeed Team
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=24502&edit=1