Skip to content

Commit df43af7

Browse files
committed
Remove zend_config.h and APACHE symbol
- zend_config.h file is in current code used only on two places and is a simple wrapper for including php_config.h instead. - The APACHE symbol is part of the PHP 3 functionality and is not used anymore. - Some leftovers of the removed apache SAPI removed.
1 parent 539b577 commit df43af7

File tree

7 files changed

+7
-28
lines changed

7 files changed

+7
-28
lines changed

.gitignore

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,6 @@ config.h.in
9999
/main/build-defs.h
100100
/main/php_config.h.in
101101
/main/php_config.h
102-
/Zend/zend_config.h
103102

104103
# ------------------------------------------------------------------------------
105104
# Manual (man 1 and 8) pages generated from templates for *nix alike systems

Zend/zend_portability.h

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -37,10 +37,8 @@
3737
# include "zend_config.w32.h"
3838
# define ZEND_PATHS_SEPARATOR ';'
3939
#elif defined(__riscos__)
40-
# include <zend_config.h>
4140
# define ZEND_PATHS_SEPARATOR ';'
4241
#else
43-
# include <zend_config.h>
4442
# define ZEND_PATHS_SEPARATOR ':'
4543
#endif
4644

@@ -122,8 +120,6 @@
122120

123121
#define zend_quiet_write(...) ZEND_IGNORE_VALUE(write(__VA_ARGS__))
124122

125-
/* all HAVE_XXX test have to be after the include of zend_config above */
126-
127123
#if defined(HAVE_LIBDL) && !defined(ZEND_WIN32)
128124

129125
# if __has_feature(address_sanitizer)

build/Makefile.global

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -118,7 +118,7 @@ clean:
118118
rm -f libphp$(PHP_MAJOR_VERSION).la $(SAPI_CLI_PATH) $(SAPI_CGI_PATH) $(SAPI_LITESPEED_PATH) $(SAPI_FPM_PATH) $(OVERALL_TARGET) modules/* libs/*
119119

120120
distclean: clean
121-
rm -f Makefile config.cache config.log config.status Makefile.objects Makefile.fragments libtool main/php_config.h main/internal_functions_cli.c main/internal_functions.c Zend/zend_dtrace_gen.h Zend/zend_dtrace_gen.h.bak Zend/zend_config.h
121+
rm -f Makefile config.cache config.log config.status Makefile.objects Makefile.fragments libtool main/php_config.h main/internal_functions_cli.c main/internal_functions.c Zend/zend_dtrace_gen.h Zend/zend_dtrace_gen.h.bak
122122
rm -f main/build-defs.h scripts/phpize
123123
rm -f ext/date/lib/timelib_config.h ext/mbstring/libmbfl/config.h ext/oci8/oci8_dtrace_gen.h ext/oci8/oci8_dtrace_gen.h.bak
124124
rm -f scripts/man1/phpize.1 scripts/php-config scripts/man1/php-config.1 sapi/cli/php.1 sapi/cgi/php-cgi.1 sapi/phpdbg/phpdbg.1 ext/phar/phar.1 ext/phar/phar.phar.1

configure.ac

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1615,17 +1615,6 @@ if test "\$CONFIG_FILES" = "$ALL_OUTPUT_FILES" || test "\$CONFIG_FILES" = " $ALL
16151615
REDO_ALL=yes
16161616
fi
16171617
1618-
dnl Create configuration headers.
1619-
dnl ----------------------------------------------------------------------------
1620-
test -d Zend || $php_shtool mkdir Zend
1621-
1622-
cat >Zend/zend_config.h <<FEO
1623-
#include <../main/php_config.h>
1624-
#if defined(APACHE) && defined(PHP_API_VERSION)
1625-
#undef HAVE_DLFCN_H
1626-
#endif
1627-
FEO
1628-
16291618
dnl Run this only when generating all the files.
16301619
if test -n "\$REDO_ALL"; then
16311620
echo "creating main/internal_functions.c"

ext/opcache/ZendAccelerator.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@
3939
#if ZEND_WIN32
4040
# include "zend_config.w32.h"
4141
#else
42-
#include "zend_config.h"
42+
# include "php_config.h"
4343
# include <sys/time.h>
4444
# include <sys/resource.h>
4545
#endif

ext/standard/url.c

Lines changed: 5 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -25,15 +25,12 @@
2525

2626
#include "url.h"
2727
#include "file.h"
28+
2829
#ifdef _OSD_POSIX
29-
#ifndef APACHE
30-
#error On this EBCDIC platform, PHP is only supported as an Apache module.
31-
#else /*APACHE*/
32-
#ifndef CHARSET_EBCDIC
33-
#define CHARSET_EBCDIC /* this machine uses EBCDIC, not ASCII! */
34-
#endif
35-
#include "ebcdic.h"
36-
#endif /*APACHE*/
30+
# ifndef CHARSET_EBCDIC
31+
# define CHARSET_EBCDIC /* this machine uses EBCDIC, not ASCII! */
32+
# endif
33+
# include "ebcdic.h"
3734
#endif /*_OSD_POSIX*/
3835

3936
/* {{{ free_url

main/php.h

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -128,8 +128,6 @@ typedef int pid_t;
128128
#endif
129129
#include <assert.h>
130130

131-
#define APACHE 0
132-
133131
#if HAVE_UNIX_H
134132
#include <unix.h>
135133
#endif

0 commit comments

Comments
 (0)