summaryrefslogtreecommitdiff
path: root/main/php.h
diff options
context:
space:
mode:
authorZeev Suraski <zeev@php.net>2000-02-10 19:41:21 +0000
committerZeev Suraski <zeev@php.net>2000-02-10 19:41:21 +0000
commit6d0ab6166cc1a4eca90211cdfa0ca144704ad677 (patch)
treeee2b2758afeb47bf3a9648c0067d9b747b91e5b2 /main/php.h
parent9709f7ec73557e0a1a85ad3fbc4c73806de50620 (diff)
downloadphp-git-6d0ab6166cc1a4eca90211cdfa0ca144704ad677.tar.gz
SAPIfication, Episode VI: Return of the SAPI
Remove mostly all references to APACHE and CGI_BINARY from the code. - Apache include files are no longer included by any PHP code, except for the Apache SAPI module. - No server specific code is in any of the base PHP code. Still left to be done: - Eliminate any references to APACHE from the few remaining modules. - Move request_info.c's logic to SAPI - Modify the regex function names, and globals, so that we can always include them, without having to fear any interference with Apache; Always use the bundled regex library
Diffstat (limited to 'main/php.h')
-rw-r--r--main/php.h51
1 files changed, 3 insertions, 48 deletions
diff --git a/main/php.h b/main/php.h
index cefb35e6b5..ff8c3c8c43 100644
--- a/main/php.h
+++ b/main/php.h
@@ -30,8 +30,6 @@
#define YYDEBUG 0
-#define CGI_BINARY (!APACHE && !USE_SAPI && !FHTTPD)
-
#include "php_version.h"
#include "zend.h"
@@ -89,6 +87,8 @@ extern unsigned char second_arg_allow_ref[];
#define inline
#endif
+#define APACHE 0
+#define CGI_BINARY 0
#if HAVE_UNIX_H
#include <unix.h>
@@ -116,19 +116,6 @@ typedef unsigned int socklen_t;
#include "request_info.h"
-#if HAVE_LIBDL
-# if MSVC5
-# include <windows.h>
-# define dlclose FreeLibrary
-# define dlopen(a,b) LoadLibrary(a)
-# define dlsym GetProcAddress
-# else
-#if HAVE_DLFCN_H && !((defined(_AIX) || defined(AIX)) && APACHE)
-# include <dlfcn.h>
-#endif
-# endif
-#endif
-
#define CREATE_MUTEX(a,b)
#define SET_MUTEX(a)
#define FREE_MUTEX(a)
@@ -180,35 +167,6 @@ extern char *strerror(int);
#include "fopen-wrappers.h"
-#if APACHE /* apache httpd */
-# if HAVE_AP_CONFIG_H
-#include "ap_config_auto.h"
-#ifdef RHAPSODY
-#undef HAVE_SNPRINTF
-#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 "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"
-#define BLOCK_INTERRUPTIONS block_alarms
-#define UNBLOCK_INTERRUPTIONS unblock_alarms
-#endif
-
#if REGEX == 1 || REGEX == 0
#include "regex/regex_extra.h"
#endif
@@ -222,10 +180,6 @@ extern char *strerror(int);
#include <sys/param.h>
# endif
#endif
-#if CGI_BINARY /* CGI version */
-#define BLOCK_INTERRUPTIONS NULL
-#define UNBLOCK_INTERRUPTIONS NULL
-#endif
#if HAVE_LIMITS_H
#include <limits.h>
@@ -292,6 +246,7 @@ extern int ap_vsnprintf(char *, size_t, const char *, va_list);
extern pval *data;
#if !(PHP_WIN32)
extern char **environ;
+#define php_sleep sleep
#endif
extern void phperror(char *error);