From: Peter Kokot Date: Mon, 8 Jul 2019 13:05:54 +0000 (+0200) Subject: Remove APACHE symbol X-Git-Tag: php-7.4.0alpha3~9 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=4b864c2ebbee11739a52b20a59aff8bdf9a38801;p=php Remove APACHE symbol The APACHE symbol was used in very early PHP versions to indicate the Apache module usage. Since PHP 4 this is no longer used in the code. --- diff --git a/configure.ac b/configure.ac index 9ca763b271..4ebb320c3d 100644 --- a/configure.ac +++ b/configure.ac @@ -1612,9 +1612,6 @@ test -d Zend || $php_shtool mkdir Zend cat >Zend/zend_config.h < -#if defined(APACHE) && defined(PHP_API_VERSION) -#undef HAVE_DLFCN_H -#endif FEO dnl Run this only when generating all the files. diff --git a/ext/standard/url.c b/ext/standard/url.c index ff70ea4e04..a04d941498 100644 --- a/ext/standard/url.c +++ b/ext/standard/url.c @@ -26,14 +26,10 @@ #include "url.h" #include "file.h" #ifdef _OSD_POSIX -#ifndef APACHE -#error On this EBCDIC platform, PHP is only supported as an Apache module. -#else /*APACHE*/ -#ifndef CHARSET_EBCDIC -#define CHARSET_EBCDIC /* this machine uses EBCDIC, not ASCII! */ -#endif -#include "ebcdic.h" -#endif /*APACHE*/ +# ifndef CHARSET_EBCDIC +# define CHARSET_EBCDIC /* this machine uses EBCDIC, not ASCII! */ +# endif +# include "ebcdic.h" #endif /*_OSD_POSIX*/ /* {{{ free_url diff --git a/main/php.h b/main/php.h index ae5d38bdd2..480da6fb18 100644 --- a/main/php.h +++ b/main/php.h @@ -128,8 +128,6 @@ typedef int pid_t; #endif #include -#define APACHE 0 - #if HAVE_UNIX_H #include #endif