summaryrefslogtreecommitdiff
path: root/sapi/isapi/php4isapi.c
diff options
context:
space:
mode:
authorStig Bakken <ssb@php.net>1999-09-28 12:08:34 +0000
committerStig Bakken <ssb@php.net>1999-09-28 12:08:34 +0000
commit4c4c8555eb5677d3ea01407d2057f0038deb5376 (patch)
tree5bd7599db58f46095bd77add94ffa50a0fa89c40 /sapi/isapi/php4isapi.c
parent7ed68c0f5300a6d0345818d170780cf457e524ca (diff)
downloadphp-git-4c4c8555eb5677d3ea01407d2057f0038deb5376.tar.gz
Started working on the Zeus support. Zeus's ISAPI obviously differs from
Windows's, does someone have docs for the Windows API?
Diffstat (limited to 'sapi/isapi/php4isapi.c')
-rw-r--r--sapi/isapi/php4isapi.c36
1 files changed, 34 insertions, 2 deletions
diff --git a/sapi/isapi/php4isapi.c b/sapi/isapi/php4isapi.c
index ee3f1f2179..ce206b5efc 100644
--- a/sapi/isapi/php4isapi.c
+++ b/sapi/isapi/php4isapi.c
@@ -1,4 +1,25 @@
-#include <windows.h>
+/*
+ +----------------------------------------------------------------------+
+ | PHP version 4.0 |
+ +----------------------------------------------------------------------+
+ | Copyright (c) 1997, 1998, 1999 The PHP Group |
+ +----------------------------------------------------------------------+
+ | This source file is subject to version 2.0 of the PHP license, |
+ | that is bundled with this package in the file LICENSE, and is |
+ | available at through the world-wide-web at |
+ | http://www.php.net/license/2_0.txt. |
+ | If you did not receive a copy of the PHP license and are unable to |
+ | obtain it through the world-wide-web, please send a note to |
+ | license@php.net so we can mail you a copy immediately. |
+ +----------------------------------------------------------------------+
+ | Authors: |
+ | |
+ +----------------------------------------------------------------------+
+ */
+
+#if WIN32|WINNT
+# include <windows.h>
+#endif
#include <httpext.h>
#include <httpfilt.h>
#include <httpext.h>
@@ -8,6 +29,8 @@
#include "php_globals.h"
#include "ext/standard/info.h"
+#include "zeus.h"
+
#define MAX_STATUS_LENGTH sizeof("xxxx LONGEST STATUS DESCRIPTION")
#define ISAPI_SERVER_VAR_BUF_SIZE 1024
#define ISAPI_POST_DATA_BUF 1024
@@ -190,7 +213,9 @@ static int sapi_isapi_send_headers(sapi_headers_struct *sapi_headers SLS_DC)
header_info.pszStatus = status_buf;
break;
}
+#ifndef WITH_ZEUS
header_info.cchStatus = strlen(header_info.pszStatus);
+#endif
header_info.pszHeader = combined_headers;
header_info.cchHeader = total_length;
lpECB->dwHttpStatusCode = SG(sapi_headers).http_response_code;
@@ -461,4 +486,11 @@ __declspec(dllexport) BOOL WINAPI DllMain(HINSTANCE hinstDLL, DWORD fdwReason, L
break;
}
return TRUE;
-} \ No newline at end of file
+}
+
+/*
+ * Local variables:
+ * tab-width: 4
+ * c-basic-offset: 4
+ * End:
+ */