Skip to content

Commit 4259f89

Browse files
committed
Merge branch 'PHP-5.5'
* PHP-5.5: Enabled apache 2.4 handler build option
2 parents 0125198 + 64d7297 commit 4259f89

File tree

1 file changed

+10
-10
lines changed

1 file changed

+10
-10
lines changed

sapi/apache2handler/config.w32

+10-10
Original file line numberDiff line numberDiff line change
@@ -38,21 +38,21 @@ if (PHP_APACHE2_2HANDLER != "no") {
3838
}
3939
}
4040

41-
ARG_ENABLE('apache2-3handler', 'Build Apache 2.3.x handler', 'no');
42-
if (PHP_APACHE2_3HANDLER != "no") {
41+
ARG_ENABLE('apache2-4handler', 'Build Apache 2.4.x handler', 'no');
42+
if (PHP_APACHE2_4HANDLER != "no") {
4343
if (PHP_ZTS == "no") {
44-
WARNING("Apache 2.3 module requires an --enable-zts build of PHP on windows");
45-
} else if (CHECK_HEADER_ADD_INCLUDE("httpd.h", "CFLAGS_APACHE2_3HANDLER", PHP_PHP_BUILD + "\\include\\apache2_3") &&
46-
CHECK_LIB("libhttpd.lib", "apache2_3handler", PHP_PHP_BUILD + "\\lib\\apache2_3") &&
47-
CHECK_LIB("libapr-1.lib", "apache2_3handler", PHP_PHP_BUILD + "\\lib\\apache2_3") &&
48-
CHECK_LIB("libaprutil-1.lib", "apache2_3handler", PHP_PHP_BUILD + "\\lib\\apache2_3")
44+
WARNING("Apache 2.4 module requires an --enable-zts build of PHP on windows");
45+
} else if (CHECK_HEADER_ADD_INCLUDE("httpd.h", "CFLAGS_APACHE2_4HANDLER", PHP_PHP_BUILD + "\\include\\apache2_4") &&
46+
CHECK_LIB("libhttpd.lib", "apache2_4handler", PHP_PHP_BUILD + "\\lib\\apache2_4") &&
47+
CHECK_LIB("libapr-1.lib", "apache2_4handler", PHP_PHP_BUILD + "\\lib\\apache2_4") &&
48+
CHECK_LIB("libaprutil-1.lib", "apache2_4handler", PHP_PHP_BUILD + "\\lib\\apache2_4")
4949
) {
50-
SAPI('apache2_3handler', 'mod_php5.c sapi_apache2.c apache_config.c php_functions.c',
51-
'php' + PHP_VERSION + 'apache2_3.dll',
50+
SAPI('apache2_4handler', 'mod_php5.c sapi_apache2.c apache_config.c php_functions.c',
51+
'php' + PHP_VERSION + 'apache2_4.dll',
5252
'/D PHP_APACHE2_EXPORTS /I win32',
5353
'sapi\\apache2handler');
5454
} else {
55-
WARNING("Could not find apache2.3 libraries/headers");
55+
WARNING("Could not find apache 2.4 libraries/headers");
5656
}
5757
}
5858

0 commit comments

Comments
 (0)