dmitry Wed May 3 13:20:13 2006 UTC
Modified files:
/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.11&r2=1.12&diff_format=u
Index: php-src/sapi/cgi/fastcgi.c
diff -u php-src/sapi/cgi/fastcgi.c:1.11 php-src/sapi/cgi/fastcgi.c:1.12
--- php-src/sapi/cgi/fastcgi.c:1.11 Thu Apr 27 11:39:46 2006
+++ php-src/sapi/cgi/fastcgi.c Wed May 3 13:20:12 2006
@@ -16,7 +16,7 @@
+----------------------------------------------------------------------+
*/
-/* $Id: fastcgi.c,v 1.11 2006/04/27 11:39:46 dmitry Exp $ */
+/* $Id: fastcgi.c,v 1.12 2006/05/03 13:20:12 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