-
Notifications
You must be signed in to change notification settings - Fork 7.8k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Remove support for EOL Apache 2.0 and 2.2 in favor of 2.4+ (#14664)
Apache 2.2 has been marked as EOL in December 2017 and doesn't receive security patches any longer. Also, most *nix distributions and packages mostly support 2.4 as minimum by now. On Windows, this removes the configure option --enable-apache2-2handler and merges the --enable-apache2handler and --enable-apache2-4handler into a single option with favoring the --enable-apache2handler. - The upstream MODULE_MAGIC_NUMBER is deprecated in favor of MODULE_MAGIC_NUMBER_MAJOR in apache2/ap_mmn.h - The initial upstream MODULE_MAGIC_NUMBER_MAJOR was 20111025 in Apache 2.4.0 - The upstream APLOG_USE_MODULE is always available since Apache 2.3.6 - The upstream CORE_PRIVATE is unnecessary and ignored since Apache 2.4.0 See: https://forum.apachehaus.com/news-general-discussion/apache-2-2-users-your-time-is-running-out/ Discussion: https://news-web.php.net/php.internals/124067
- Loading branch information
Showing
10 changed files
with
35 additions
and
92 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,2 @@ | ||
Apache 2.0 Handler | ||
Ian Holsman, Justin Erenkrantz (based on Apache 2.0 Filter code) | ||
Apache 2 Handler | ||
Ian Holsman, Justin Erenkrantz (based on Apache 2 Filter code) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,56 +1,24 @@ | ||
// vim:ft=javascript | ||
|
||
ARG_ENABLE('apache2handler', 'Build Apache 2.x handler', 'no'); | ||
ARG_ENABLE('apache2handler', 'Build Apache 2 handler', 'no'); | ||
ARG_ENABLE('apache2-4handler', 'Build Apache 2 handler (alias for --enable--apache2handler)', 'no'); | ||
|
||
if (PHP_APACHE2HANDLER != "no") { | ||
if (PHP_ZTS == "no") { | ||
WARNING("Apache 2.0 module requires an --enable-zts build of PHP on windows"); | ||
} else if (CHECK_HEADER_ADD_INCLUDE("httpd.h", "CFLAGS_APACHE2HANDLER", PHP_PHP_BUILD + "\\include\\apache2") && | ||
CHECK_LIB("libhttpd.lib", "apache2handler", PHP_PHP_BUILD + "\\lib\\apache2") && | ||
CHECK_LIB("libapr.lib", "apache2handler", PHP_PHP_BUILD + "\\lib\\apache2") && | ||
CHECK_LIB("libaprutil.lib", "apache2handler", PHP_PHP_BUILD + "\\lib\\apache2") | ||
) { | ||
SAPI('apache2handler', 'mod_php.c sapi_apache2.c apache_config.c php_functions.c', | ||
'php' + PHP_VERSION + 'apache2.dll', | ||
'/D PHP_APACHE2_EXPORTS /DZEND_ENABLE_STATIC_TSRMLS_CACHE=1'); | ||
} else { | ||
WARNING("Could not find apache2 libraries/headers"); | ||
} | ||
if(PHP_APACHE2_4HANDLER != "no" && PHP_APACHE2HANDLER == "no") { | ||
PHP_APACHE2HANDLER="yes"; | ||
} | ||
|
||
ARG_ENABLE('apache2-2handler', 'Build Apache 2.2.x handler', 'no'); | ||
|
||
if (PHP_APACHE2_2HANDLER != "no") { | ||
if (PHP_ZTS == "no") { | ||
WARNING("Apache 2.2 module requires an --enable-zts build of PHP on windows"); | ||
} else if (CHECK_HEADER_ADD_INCLUDE("httpd.h", "CFLAGS_APACHE2_2HANDLER", PHP_PHP_BUILD + "\\include\\apache2_2") && | ||
CHECK_LIB("libhttpd.lib", "apache2_2handler", PHP_PHP_BUILD + "\\lib\\apache2_2") && | ||
CHECK_LIB("libapr-1.lib", "apache2_2handler", PHP_PHP_BUILD + "\\lib\\apache2_2") && | ||
CHECK_LIB("libaprutil-1.lib", "apache2_2handler", PHP_PHP_BUILD + "\\lib\\apache2_2") | ||
) { | ||
SAPI('apache2_2handler', 'mod_php.c sapi_apache2.c apache_config.c php_functions.c', | ||
'php' + PHP_VERSION + 'apache2_2.dll', | ||
'/D PHP_APACHE2_EXPORTS /DZEND_ENABLE_STATIC_TSRMLS_CACHE=1', | ||
'sapi\\apache2_2handler'); | ||
} else { | ||
WARNING("Could not find apache2.2 libraries/headers"); | ||
} | ||
} | ||
|
||
ARG_ENABLE('apache2-4handler', 'Build Apache 2.4.x handler', 'no'); | ||
if (PHP_APACHE2_4HANDLER != "no") { | ||
if (PHP_APACHE2HANDLER != "no") { | ||
if (PHP_ZTS == "no") { | ||
WARNING("Apache 2.4 module requires an --enable-zts build of PHP on windows"); | ||
} else if (CHECK_HEADER_ADD_INCLUDE("httpd.h", "CFLAGS_APACHE2_4HANDLER", PHP_PHP_BUILD + "\\include\\apache2_4") && | ||
CHECK_LIB("libhttpd.lib", "apache2_4handler", PHP_PHP_BUILD + "\\lib\\apache2_4") && | ||
CHECK_LIB("libapr-1.lib", "apache2_4handler", PHP_PHP_BUILD + "\\lib\\apache2_4") && | ||
CHECK_LIB("libaprutil-1.lib", "apache2_4handler", PHP_PHP_BUILD + "\\lib\\apache2_4") | ||
WARNING("Apache module requires an --enable-zts build of PHP on windows"); | ||
} else if (CHECK_HEADER_ADD_INCLUDE("httpd.h", "CFLAGS_APACHE2HANDLER", PHP_PHP_BUILD + "\\include\\apache2_4") && | ||
CHECK_LIB("libhttpd.lib", "apache2handler", PHP_PHP_BUILD + "\\lib\\apache2_4") && | ||
CHECK_LIB("libapr-1.lib", "apache2handler", PHP_PHP_BUILD + "\\lib\\apache2_4") && | ||
CHECK_LIB("libaprutil-1.lib", "apache2handler", PHP_PHP_BUILD + "\\lib\\apache2_4") | ||
) { | ||
SAPI('apache2_4handler', 'mod_php.c sapi_apache2.c apache_config.c php_functions.c', | ||
SAPI('apache2handler', 'mod_php.c sapi_apache2.c apache_config.c php_functions.c', | ||
'php' + PHP_VERSION + 'apache2_4.dll', | ||
'/D PHP_APACHE2_EXPORTS /DZEND_ENABLE_STATIC_TSRMLS_CACHE=1', | ||
'sapi\\apache2handler'); | ||
'/D PHP_APACHE2_EXPORTS /DZEND_ENABLE_STATIC_TSRMLS_CACHE=1'); | ||
} else { | ||
WARNING("Could not find apache 2.4 libraries/headers"); | ||
WARNING("Could not find Apache libraries/headers"); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters