1
0
mirror of https://github.com/php/php-src.git synced 2026-03-24 00:02:20 +01:00

Add HAVE_MEMMOVE to ext/pcre (#18862)

The pcre2 library still needs HAVE_MEMMOVE defined to use the system
(C99 standard) memmove() function, otherwise emulation is used. On
Windows, this is already enabled.
This commit is contained in:
Peter Kokot
2025-06-19 21:49:36 +02:00
committed by GitHub
parent 2f55291ceb
commit be70f42de7

View File

@@ -99,7 +99,14 @@ else
[PHP_PCRE_CFLAGS="$PHP_PCRE_CFLAGS -Wno-implicit-fallthrough"],,
[-Werror])
PHP_PCRE_CFLAGS="$PHP_PCRE_CFLAGS -DHAVE_CONFIG_H -I@ext_srcdir@/pcre2lib -DZEND_ENABLE_STATIC_TSRMLS_CACHE=1"
PHP_PCRE_CFLAGS=m4_normalize(["
$PHP_PCRE_CFLAGS
-DHAVE_CONFIG_H
-DHAVE_MEMMOVE
-DZEND_ENABLE_STATIC_TSRMLS_CACHE=1
-I@ext_srcdir@/pcre2lib
"])
AC_DEFINE([HAVE_BUNDLED_PCRE], [1],
[Define to 1 if PHP uses the bundled PCRE library.])
AC_DEFINE([PCRE2_CODE_UNIT_WIDTH], [8])