diff options
author | foobar <sniper@php.net> | 2002-04-23 03:01:30 +0000 |
---|---|---|
committer | foobar <sniper@php.net> | 2002-04-23 03:01:30 +0000 |
commit | dace2eca0344c25c3bd383e4cdb58e9c323d72ef (patch) | |
tree | ad762ece6d1956e5e6179a503f40cb92caeebbb9 /sapi/apache | |
parent | eb18c5c38c9335f48a30aa856aa97ff285dd6aef (diff) | |
download | php-git-dace2eca0344c25c3bd383e4cdb58e9c323d72ef.tar.gz |
Part 4 of apache sapi build fixes:
- Fixed many conflicts caused by bogus includes, e.g the infamous XtOffset
redefinition warning is gone now.
Diffstat (limited to 'sapi/apache')
-rw-r--r-- | sapi/apache/mod_php4.c | 43 | ||||
-rw-r--r-- | sapi/apache/php_apache.c | 36 | ||||
-rw-r--r-- | sapi/apache/php_apache_http.h | 52 | ||||
-rw-r--r-- | sapi/apache/sapi_apache.c | 37 |
4 files changed, 40 insertions, 128 deletions
diff --git a/sapi/apache/mod_php4.c b/sapi/apache/mod_php4.c index 750661ed4f..a46b84a6a2 100644 --- a/sapi/apache/mod_php4.c +++ b/sapi/apache/mod_php4.c @@ -19,46 +19,7 @@ */ /* $Id$ */ -#define NO_REGEX_EXTRA_H -#ifdef WIN32 -#include <winsock2.h> -#include <stddef.h> -#endif - -#include "zend.h" -#include "php.h" -#include "php_variables.h" - -#include "httpd.h" -#include "http_config.h" -#if MODULE_MAGIC_NUMBER > 19980712 -# include "ap_compat.h" -#else -# if MODULE_MAGIC_NUMBER > 19980324 -# include "compat.h" -# endif -#endif -#include "http_core.h" -#include "http_main.h" -#include "http_protocol.h" -#include "http_request.h" -#include "http_log.h" - -#include "php_ini.h" -#include "php_globals.h" -#include "SAPI.h" -#include "php_main.h" - -#include "zend_compile.h" -#include "zend_execute.h" -#include "zend_highlight.h" -#include "zend_indent.h" - -#include "ext/standard/php_standard.h" - -#include "util_script.h" - -#include "mod_php4.h" +#include "php_apache_http.h" #undef shutdown @@ -434,7 +395,7 @@ static void init_request_info(TSRMLS_D) authorization = table_get(r->headers_in, "Authorization"); } if (authorization -/* && !auth_type(r) */ + && !auth_type(r) && !strcasecmp(getword(r->pool, &authorization, ' '), "Basic")) { tmp = uudecode(r->pool, authorization); SG(request_info).auth_user = getword_nulls_nc(r->pool, &tmp, ':'); diff --git a/sapi/apache/php_apache.c b/sapi/apache/php_apache.c index 4fff27fae1..b1a5b0e6d3 100644 --- a/sapi/apache/php_apache.c +++ b/sapi/apache/php_apache.c @@ -19,37 +19,7 @@ */ /* $Id$ */ -#define NO_REGEX_EXTRA_H - -#ifdef WIN32 -#include <winsock2.h> -#include <stddef.h> -#endif - -#include "php.h" -#include "ext/standard/head.h" -#include "php_globals.h" -#include "php_ini.h" -#include "SAPI.h" -#include "mod_php4.h" -#include "ext/standard/info.h" - -#include <stdlib.h> -#if HAVE_UNISTD_H -#include <unistd.h> -#endif -#include <string.h> -#include <errno.h> -#include <ctype.h> - #include "php_apache_http.h" -#include "http_request.h" - -#ifdef ZTS -int php_apache_info_id; -#else -php_apache_info_struct php_apache_info; -#endif #ifdef PHP_WIN32 #include "zend.h" @@ -58,6 +28,12 @@ php_apache_info_struct php_apache_info; #include "build-defs.h" #endif +#ifdef ZTS +int php_apache_info_id; +#else +php_apache_info_struct php_apache_info; +#endif + #define SECTION(name) PUTS("<H2 align=\"center\">" name "</H2>\n") extern module *top_module; diff --git a/sapi/apache/php_apache_http.h b/sapi/apache/php_apache_http.h index a878b8fa3e..6d41f418ab 100644 --- a/sapi/apache/php_apache_http.h +++ b/sapi/apache/php_apache_http.h @@ -1,24 +1,34 @@ -# if HAVE_AP_CONFIG_H -#include "ap_config_auto.h" -#ifdef RHAPSODY -#undef HAVE_SNPRINTF +#define NO_REGEX_EXTRA_H + +#ifdef WIN32 +#include <winsock2.h> +#include <stddef.h> #endif -#include "ap_config.h" -#ifdef RHAPSODY -#undef HAVE_SNPRINTF -#define HAVE_SNPRINTF 1 -#endif -# endif -# if HAVE_OLD_COMPAT_H -#include "compat.h" -# endif -# if HAVE_AP_COMPAT_H -#include "ap_compat.h" -# endif + +#include "zend.h" +#include "php_regex.h" + #include "httpd.h" -#include "http_main.h" -#include "http_core.h" -#include "http_request.h" -#include "http_protocol.h" #include "http_config.h" -#include "http_log.h" + +#if MODULE_MAGIC_NUMBER > 19980712 +# include "ap_compat.h" +#else +# if MODULE_MAGIC_NUMBER > 19980324 +# include "compat.h" +# endif +#endif + +#include "http_core.h" +#include "http_main.h" +#include "http_protocol.h" +#include "http_request.h" +#include "http_log.h" +#include "util_script.h" + +#include "php_variables.h" +#include "php_main.h" +#include "php_ini.h" +#include "ext/standard/php_standard.h" + +#include "mod_php4.h" diff --git a/sapi/apache/sapi_apache.c b/sapi/apache/sapi_apache.c index ae2c827a6e..aa935b90db 100644 --- a/sapi/apache/sapi_apache.c +++ b/sapi/apache/sapi_apache.c @@ -21,42 +21,7 @@ */ /* $Id$ */ -#define NO_REGEX_EXTRA_H -#ifdef WIN32 -#include <winsock2.h> -#include <stddef.h> -#endif - -#include "php.h" - -#include "httpd.h" -#include "http_config.h" -#if MODULE_MAGIC_NUMBER > 19980712 -# include "ap_compat.h" -#else -# if MODULE_MAGIC_NUMBER > 19980324 -# include "compat.h" -# endif -#endif -#include "http_core.h" -#include "http_main.h" -#include "http_protocol.h" -#include "http_request.h" -#include "http_log.h" - -#include "zend.h" -#include "php_ini.h" -#include "php_globals.h" -#include "SAPI.h" -#include "php_main.h" -#include "zend_compile.h" -#include "zend_execute.h" -#include "zend_highlight.h" -#include "zend_indent.h" -#include "ext/standard/php_standard.h" -#include "util_script.h" -#include "php_version.h" -#include "mod_php4.h" +#include "php_apache_http.h" /* {{{ apache_php_module_main */ |