From:             gwang at litespeedtech dot com
Operating system: Linux
PHP version:      4.3.2
PHP Bug Type:     CGI related
Bug description:  Fast CGI interface is broken

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 bug report at http://bugs.php.net/?id=24502&edit=1
-- 
Try a CVS snapshot:         http://bugs.php.net/fix.php?id=24502&r=trysnapshot
Fixed in CVS:               http://bugs.php.net/fix.php?id=24502&r=fixedcvs
Fixed in release:           http://bugs.php.net/fix.php?id=24502&r=alreadyfixed
Need backtrace:             http://bugs.php.net/fix.php?id=24502&r=needtrace
Try newer version:          http://bugs.php.net/fix.php?id=24502&r=oldversion
Not developer issue:        http://bugs.php.net/fix.php?id=24502&r=support
Expected behavior:          http://bugs.php.net/fix.php?id=24502&r=notwrong
Not enough info:            http://bugs.php.net/fix.php?id=24502&r=notenoughinfo
Submitted twice:            http://bugs.php.net/fix.php?id=24502&r=submittedtwice
register_globals:           http://bugs.php.net/fix.php?id=24502&r=globals
PHP 3 support discontinued: http://bugs.php.net/fix.php?id=24502&r=php3
Daylight Savings:           http://bugs.php.net/fix.php?id=24502&r=dst
IIS Stability:              http://bugs.php.net/fix.php?id=24502&r=isapi
Install GNU Sed:            http://bugs.php.net/fix.php?id=24502&r=gnused

Reply via email to