Skip to content

Commit c20ee63

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 48abed7 commit c20ee63

File tree

5 files changed

+2
-15
lines changed

5 files changed

+2
-15
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 & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1606,14 +1606,6 @@ if test "\$CONFIG_FILES" = "$ALL_OUTPUT_FILES" || test "\$CONFIG_FILES" = " $ALL
16061606
REDO_ALL=yes
16071607
fi
16081608
1609-
dnl Create configuration headers.
1610-
dnl ----------------------------------------------------------------------------
1611-
test -d Zend || $php_shtool mkdir Zend
1612-
1613-
cat >Zend/zend_config.h <<FEO
1614-
#include <../main/php_config.h>
1615-
FEO
1616-
16171609
dnl Run this only when generating all the files.
16181610
if test -n "\$REDO_ALL"; then
16191611
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

0 commit comments

Comments
 (0)