summaryrefslogtreecommitdiff
path: root/sapi/cgi/fastcgi.c
diff options
context:
space:
mode:
authorDmitry Stogov <dmitry@php.net>2006-05-03 13:19:57 +0000
committerDmitry Stogov <dmitry@php.net>2006-05-03 13:19:57 +0000
commit79fd560e5e1b54ef04e4e2062754a6c47d780100 (patch)
tree7dd0045541f2a0963ffa8d6c7f32acad28007fee /sapi/cgi/fastcgi.c
parentefad37874b34c43b5b61338521e9593973357297 (diff)
downloadphp-git-79fd560e5e1b54ef04e4e2062754a6c47d780100.tar.gz
Fixed incompatibility with isapi_fcgi.dll
Diffstat (limited to 'sapi/cgi/fastcgi.c')
-rw-r--r--sapi/cgi/fastcgi.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/sapi/cgi/fastcgi.c b/sapi/cgi/fastcgi.c
index 571cdab772..6a80e0cf7e 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;