]> granicus.if.org Git - php/commitdiff
Remove some old apache2filter occurrences
authorPeter Kokot <peterkokot@gmail.com>
Thu, 5 Oct 2017 15:55:29 +0000 (17:55 +0200)
committerNikita Popov <nikita.ppv@gmail.com>
Sun, 8 Oct 2017 15:48:47 +0000 (17:48 +0200)
apache2filter was supported in PHP <= 5.6. This patch removes some old
apache2filter occurrences. Also FreeBSD warning therefore is not needed
anymore when building PHP with apache2filter and in later versions don't
need to set the --with-tsrm-pth option.

configure.ac
ext/opcache/ZendAccelerator.c

index a63354f29686662eee4853153b18cb14bc33d3f0..6ba8b798bf3acbf29385147e7b7ccd6b85d60e80 100644 (file)
@@ -1544,15 +1544,6 @@ dnl mv -f main/internal_functions.c main/internal_functions.c.old 2>/dev/null
   cli_extensions="$EXT_CLI_STATIC"
   sh $srcdir/build/genif.sh $srcdir/main/internal_functions.c.in $srcdir "$EXTRA_MODULE_PTRS" $AWK \$cli_extensions > main/internal_functions_cli.c
 
-  if test "$UNAME" = "FreeBSD" && test "$PHP_SAPI" = "apache2filter" && test "$TSRM_PTH" != "pth-config" ; then
-    echo "+--------------------------------------------------------------------+"
-    echo "|                        *** WARNING ***                             |"
-    echo "|                                                                    |"
-    echo "| In order to build PHP as a Apache2 module on FreeBSD, you have to  |"
-    echo "| add  --with-tsrm-pth to your ./configure line. Therefore you need  |"
-    echo "| to install gnu-pth from /usr/ports/devel/pth.                      |"
-  fi
-
   if test -n "$PHP_APXS_BROKEN"; then
     echo "+--------------------------------------------------------------------+"
     echo "| WARNING: Your $APXS script is most likely broken."
@@ -1578,7 +1569,7 @@ cat <<X
 X
   fi
 
-    if test "$PHP_SAPI" = "apache2handler" || test "$PHP_SAPI" = "apache2filter"; then
+    if test "$PHP_SAPI" = "apache2handler"; then
       if test "$APACHE_VERSION" -ge 2004001; then
         if test -z "$APACHE_THREADED_MPM"; then
 cat <<X
index a407c88281e62e98a79f3eaddb5b2be1c0d0a48a..78dc60366ad79b2b87dde524f41f320e7dd187d6 100644 (file)
@@ -2319,7 +2319,6 @@ static inline int accel_find_sapi(void)
                "cli-server",
                "cgi-fcgi",
                "fpm-fcgi",
-               "apache2filter",
                "apache2handler",
                "litespeed",
                "uwsgi",