]> granicus.if.org Git - php/commitdiff
Sync the changes to ext/filter with 7.4, now that it works.
authorKalle Sommer Nielsen <kalle@php.net>
Wed, 20 Mar 2019 18:09:45 +0000 (20:09 +0200)
committerKalle Sommer Nielsen <kalle@php.net>
Wed, 20 Mar 2019 18:09:45 +0000 (20:09 +0200)
- Removed --with-pcre-dir
- The filter extension can now be built as shared on Unix with ./configure

NEWS
UPGRADING
UPGRADING.INTERNALS
ext/filter/config.m4

diff --git a/NEWS b/NEWS
index d88c4588082779a24d41b06fb172fc52ef62312b..b4e5db0a24184688d1abe60c72f121a907f6bde2 100644 (file)
--- a/NEWS
+++ b/NEWS
@@ -25,6 +25,11 @@ PHP                                                                        NEWS
 - FFI:
   . Added FFI extension. (Dmitry)
 
+- Filter:
+  . The filter extension no longer have the --with-pcre-dir on Unix builds, 
+    allowing the extension to be once more compiled as shared using 
+    ./configure. (Kalle)
+
 - FPM:
   . Implemented FR #72510 (systemd service should be hardened). (Craig Andrews)
 
index cc9507c50fb780e2cf5df5c2ff77cfc07a48e125..d8dfe2b8a508019da8ffabf39753e040a56b9981 100644 (file)
--- a/UPGRADING
+++ b/UPGRADING
@@ -251,6 +251,10 @@ PHP 7.4 UPGRADE NOTES
   . imagescale() now supports aspect ratio preserving scaling to a fixed height
     by passing -1 as $new_width.
 
+- Filter:
+  . The filter extension no longer exposes --with-pcre-dir for Unix builds and 
+    can now reliably be built as shared when using ./configure once more.
+
 - Hash:
   . The hash extension cannot be disabled anymore and is always an integral
     part of any PHP build, similar to the date extension.
index 8efdb9c5a325f8b537642a8e52aa1cfcfee10171..626c71e6638c895c41774260faada909f2a0577b 100644 (file)
@@ -190,7 +190,10 @@ PHP 7.4 INTERNALS UPGRADE NOTES
 
   a. Abstract
     - The hash extension is now always available, meaning the --enable-hash
-         configure argument has been removed.
+           configure argument has been removed.
+    - The filter extension no longer exposes the --with-pcre-dir configure 
+      argument and therefore allows shared builds with ./configure for Unix 
+      builds.
 
   b. Unix build system changes
     - configure --help now also outputs --program-suffix and --program-prefix
index 55f382eb213875d723d3a22fa3bb699e8003850d..06ca873f6fb9c3644ed2678e84254034ef675b4e 100644 (file)
@@ -6,45 +6,7 @@ PHP_ARG_ENABLE([filter],
     [Disable input filter support])],
   [yes])
 
-PHP_ARG_WITH([pcre-dir],
-  [pcre install prefix],
-  [AS_HELP_STRING([--with-pcre-dir],
-    [FILTER: pcre install prefix])],
-  [no],
-  [no])
-
 if test "$PHP_FILTER" != "no"; then
-
-  dnl Check if configure is the PHP core configure
-  if test -n "$PHP_VERSION"; then
-    dnl This extension can not be build as shared when in PHP core
-    ext_shared=no
-  else
-    dnl This is PECL build, check if bundled PCRE library is used
-    old_CPPFLAGS=$CPPFLAGS
-    CPPFLAGS=$INCLUDES
-    AC_EGREP_CPP(yes,[
-#include <main/php_config.h>
-#if defined(HAVE_BUNDLED_PCRE) && !defined(COMPILE_DL_PCRE)
-yes
-#endif
-    ],[
-      PHP_PCRE_REGEX=yes
-    ],[
-      AC_EGREP_CPP(yes,[
-#include <main/php_config.h>
-#if defined(HAVE_PCRE) && !defined(COMPILE_DL_PCRE)
-yes
-#endif
-      ],[
-        PHP_PCRE_REGEX=pecl
-      ],[
-        PHP_PCRE_REGEX=no
-      ])
-    ])
-    CPPFLAGS=$old_CPPFLAGS
-  fi
-
   PHP_NEW_EXTENSION(filter, filter.c sanitizing_filters.c logical_filters.c callback_filter.c, $ext_shared,, -DZEND_ENABLE_STATIC_TSRMLS_CACHE=1)
   PHP_SUBST(FILTER_SHARED_LIBADD)