Installation Instructions for PHP 4.0
-------------------------------------
+Note! As of 4.0b3, PHP will require GNU make.
+
For the impatient here is a quick set of steps that will build PHP as
an Apache module for Apache 1.3.x with MySQL support. A more verbose
explanation follows.
[ --with-zeus=DIR Build PHP as an ISAPI module for use with Zeus.],
[
if test "$withval" != "no"; then
- SAPI_TARGET=libphp4_isapi.so
AC_MSG_RESULT(yes)
if test "${enable_thread_safety}" != "yes"; then
AC_MSG_ERROR(You must specify --enable-thread-safety to build as an ISAPI module)
if ! test -f "$zeuspath/web/include/httpext.h"; then
AC_MSG_ERROR(Unable to find httpext.h in $zeuspath/web/include)
fi
+ AC_DEFINE(WITH_ZEUS)
AC_ADD_INCLUDE($zeuspath/web/include)
PHP_SAPI=isapi
SAPI_TARGET=php4isapi.so
-#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>
#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
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;
break;
}
return TRUE;
-}
\ No newline at end of file
+}
+
+/*
+ * Local variables:
+ * tab-width: 4
+ * c-basic-offset: 4
+ * End:
+ */