diff options
author | Kalle Sommer Nielsen <kalle@php.net> | 2019-03-20 20:09:45 +0200 |
---|---|---|
committer | Kalle Sommer Nielsen <kalle@php.net> | 2019-03-20 20:09:45 +0200 |
commit | 26f98ecd19bac2d8911fe85d4b086b4ff5408e8c (patch) | |
tree | 7bd52b83f795857e5204f7cb628ac8ba13154b72 | |
parent | 6bbb18a0b6bef11222caaa55c00abdbcbb55d54b (diff) | |
download | php-git-26f98ecd19bac2d8911fe85d4b086b4ff5408e8c.tar.gz |
Sync the changes to ext/filter with 7.4, now that it works.
- Removed --with-pcre-dir
- The filter extension can now be built as shared on Unix with ./configure
-rw-r--r-- | NEWS | 5 | ||||
-rw-r--r-- | UPGRADING | 4 | ||||
-rw-r--r-- | UPGRADING.INTERNALS | 5 | ||||
-rw-r--r-- | ext/filter/config.m4 | 38 |
4 files changed, 13 insertions, 39 deletions
@@ -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) @@ -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. diff --git a/UPGRADING.INTERNALS b/UPGRADING.INTERNALS index 8efdb9c5a3..626c71e663 100644 --- a/UPGRADING.INTERNALS +++ b/UPGRADING.INTERNALS @@ -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 diff --git a/ext/filter/config.m4 b/ext/filter/config.m4 index 55f382eb21..06ca873f6f 100644 --- a/ext/filter/config.m4 +++ b/ext/filter/config.m4 @@ -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) |