dmitry          Wed May  3 13:19:58 2006 UTC

  Modified files:              (Branch: PHP_5_1)
    /php-src/sapi/cgi   fastcgi.c 
  Log:
  Fixed incompatibility with isapi_fcgi.dll
  
  
http://cvs.php.net/viewcvs.cgi/php-src/sapi/cgi/fastcgi.c?r1=1.4.2.10&r2=1.4.2.11&diff_format=u
Index: php-src/sapi/cgi/fastcgi.c
diff -u php-src/sapi/cgi/fastcgi.c:1.4.2.10 php-src/sapi/cgi/fastcgi.c:1.4.2.11
--- php-src/sapi/cgi/fastcgi.c:1.4.2.10 Thu Apr 27 11:39:32 2006
+++ php-src/sapi/cgi/fastcgi.c  Wed May  3 13:19:57 2006
@@ -16,7 +16,7 @@
    +----------------------------------------------------------------------+
 */
 
-/* $Id: fastcgi.c,v 1.4.2.10 2006/04/27 11:39:32 dmitry Exp $ */
+/* $Id: fastcgi.c,v 1.4.2.11 2006/05/03 13:19:57 dmitry Exp $ */
 
 #include "fastcgi.h"
 #include "php.h"
@@ -510,6 +510,9 @@
                        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 @@
                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;

-- 
PHP CVS Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to