From: Dmitry Stogov Date: Wed, 3 May 2006 13:20:12 +0000 (+0000) Subject: Fixed incompatibility with isapi_fcgi.dll X-Git-Tag: BEFORE_NEW_OUTPUT_API~321 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=0f489f738cdf0abb4e2b8ac835290333c54c2df9;p=php Fixed incompatibility with isapi_fcgi.dll --- diff --git a/sapi/cgi/fastcgi.c b/sapi/cgi/fastcgi.c index 1471d933bb..4e2cf56f70 100644 --- a/sapi/cgi/fastcgi.c +++ b/sapi/cgi/fastcgi.c @@ -510,6 +510,9 @@ static int fcgi_read_request(fcgi_request *req) len = (hdr.contentLengthB1 << 8) | hdr.contentLengthB0; padding = hdr.paddingLength; } +#ifdef _WIN32 + req->has_in = 1; +#else if (safe_read(req, &hdr, sizeof(fcgi_header)) != sizeof(fcgi_header) || hdr.version < FCGI_VERSION_1 || hdr.type != FCGI_STDIN) { @@ -519,6 +522,7 @@ static int fcgi_read_request(fcgi_request *req) req->in_len = (hdr.contentLengthB1 << 8) | hdr.contentLengthB0; req->in_pad = hdr.paddingLength; req->has_in = (req->in_len != 0); +#endif } else if (hdr.type == FCGI_GET_VALUES) { int i, j; int name_len;