2017-07-18 09:55:55 +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
|
2019-10-02 07:55:02 +00:00
|
|
|
@@ -105,17 +105,6 @@ if test "$PHP_APXS2" != "no"; then
|
2017-07-18 09:55:55 +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
|
2019-10-02 07:55:02 +00:00
|
|
|
- APACHE_THREADED_MPM=`$APXS_HTTPD -V 2>/dev/null | grep 'threaded:.*yes'`
|
2017-07-18 09:55:55 +00:00
|
|
|
- if test -n "$APACHE_THREADED_MPM"; then
|
|
|
|
- PHP_BUILD_THREAD_SAFE
|
|
|
|
- fi
|
|
|
|
- fi
|
|
|
|
AC_MSG_RESULT(yes)
|
|
|
|
PHP_SUBST(APXS)
|
|
|
|
else
|