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

Update ext/mbstring and ext/snmp dependencies (#15469)

The mbstring extension requires the pcre extension and snmp extension
requires the spl extension.
This commit is contained in:
Peter Kokot
2024-08-17 21:11:28 +02:00
committed by GitHub
parent 82c4db6154
commit 41709ac89f
4 changed files with 4 additions and 0 deletions

View File

@@ -178,4 +178,5 @@ if test "$PHP_MBSTRING" != "no"; then
dnl libmbfl is required
PHP_MBSTRING_SETUP_LIBMBFL
PHP_MBSTRING_EXTENSION
PHP_ADD_EXTENSION_DEP(mbstring, pcre)
fi

View File

@@ -7,6 +7,7 @@ if (PHP_MBSTRING != "no") {
if (CHECK_HEADER_ADD_INCLUDE("mbstring.h", "CFLAGS_MBSTRING", PHP_MBSTRING + ";" + PHP_PHP_BUILD + "\\include")) {
EXTENSION("mbstring", "mbstring.c php_unicode.c mb_gpc.c", PHP_MBSTRING_SHARED);
ADD_EXTENSION_DEP('mbstring', 'pcre');
STDOUT.WriteLine("Using bundled libmbfl...");

View File

@@ -87,5 +87,6 @@ if test "$PHP_SNMP" != "no"; then
LIBS=$LIBS_SAVE
PHP_NEW_EXTENSION([snmp], [snmp.c], [$ext_shared])
PHP_ADD_EXTENSION_DEP(snmp, spl)
PHP_SUBST([SNMP_SHARED_LIBADD])
fi

View File

@@ -7,6 +7,7 @@ if (PHP_SNMP != "no") {
SETUP_OPENSSL("snmp", PHP_SNMP) >= 2) {
if (CHECK_LIB("netsnmp.lib", "snmp", PHP_SNMP)) {
EXTENSION('snmp', 'snmp.c');
ADD_EXTENSION_DEP('snmp', 'spl');
AC_DEFINE('HAVE_SNMP', 1, "Define to 1 if the PHP extension 'snmp' is available.");
} else {
WARNING("snmp not enabled; libraries and headers not found");