summaryrefslogtreecommitdiffstats
path: root/php-7.1.7-httpd.patch
diff options
context:
space:
mode:
authorRemi Collet <remi@remirepo.net>2017-08-22 15:04:33 +0200
committerRemi Collet <remi@remirepo.net>2017-08-22 15:04:33 +0200
commit4cf2d1c527e662f0bf86a090016ea9c8981b47a6 (patch)
tree3e18a682800396836727cac139cb90f792f94dd8 /php-7.1.7-httpd.patch
parentb0cc2368433334140d8c656ce3ed75af723e4519 (diff)
F27:
- disable httpd MPM check - php-fpm: drop unneeded "pid" from default configuration
Diffstat (limited to 'php-7.1.7-httpd.patch')
-rw-r--r--php-7.1.7-httpd.patch28
1 files changed, 28 insertions, 0 deletions
diff --git a/php-7.1.7-httpd.patch b/php-7.1.7-httpd.patch
new file mode 100644
index 0000000..acb3d2c
--- /dev/null
+++ b/php-7.1.7-httpd.patch
@@ -0,0 +1,28 @@
+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
+index 2e64b21..ec4799f 100644
+--- a/sapi/apache2handler/config.m4
++++ b/sapi/apache2handler/config.m4
+@@ -116,17 +116,6 @@ if test "$PHP_APXS2" != "no"; then
+ ;;
+ 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
+- APACHE_THREADED_MPM=`$APXS_HTTPD -V | grep 'threaded:.*yes'`
+- if test -n "$APACHE_THREADED_MPM"; then
+- PHP_BUILD_THREAD_SAFE
+- fi
+- fi
+ AC_MSG_RESULT(yes)
+ PHP_SUBST(APXS)
+ else