2019-05-07 13:00:40 +00:00
|
|
|
Disable MPM detection
|
|
|
|
|
|
|
|
mod_php is build twice
|
|
|
|
- as NTS without option
|
|
|
|
- as ZTS using --enable-maintainer-zts
|
|
|
|
|
|
|
|
diff --git a/sapi/apache2handler/config.m4 b/sapi/apache2handler/config.m4
|
|
|
|
--- a/sapi/apache2handler/config.m4
|
|
|
|
+++ b/sapi/apache2handler/config.m4
|
2024-03-29 14:55:16 +00:00
|
|
|
@@ -105,17 +105,6 @@ if test "$PHP_APXS2" != "no"; then
|
2019-05-07 13:00:40 +00:00
|
|
|
;;
|
|
|
|
esac
|
|
|
|
|
|
|
|
- if test "$APACHE_VERSION" -lt 2004001; then
|
|
|
|
- APXS_MPM=`$APXS -q MPM_NAME`
|
|
|
|
- if test "$APXS_MPM" != "prefork" && test "$APXS_MPM" != "peruser" && test "$APXS_MPM" != "itk"; then
|
|
|
|
- PHP_BUILD_THREAD_SAFE
|
|
|
|
- fi
|
|
|
|
- else
|
2024-03-29 14:55:16 +00:00
|
|
|
- APACHE_THREADED_MPM=`$APXS_HTTPD -V 2>/dev/null | grep 'threaded:.*yes'`
|
2019-05-07 13:00:40 +00:00
|
|
|
- if test -n "$APACHE_THREADED_MPM"; then
|
|
|
|
- PHP_BUILD_THREAD_SAFE
|
|
|
|
- fi
|
|
|
|
- fi
|
|
|
|
AC_MSG_RESULT(yes)
|
|
|
|
PHP_SUBST(APXS)
|
|
|
|
else
|