]> granicus.if.org Git - php/commitdiff
Fixed incompatibility with isapi_fcgi.dll
authorDmitry Stogov <dmitry@php.net>
Wed, 3 May 2006 13:20:12 +0000 (13:20 +0000)
committerDmitry Stogov <dmitry@php.net>
Wed, 3 May 2006 13:20:12 +0000 (13:20 +0000)
sapi/cgi/fastcgi.c

index 1471d933bb065b95fd614cc9e07f5fcca2949a92..4e2cf56f7098703a919ea56c073af84c22328906 100644 (file)
@@ -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;