- 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)
. 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.
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
[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)