Skip to content

Commit 41709ac

Browse files
authored
Update ext/mbstring and ext/snmp dependencies (#15469)
The mbstring extension requires the pcre extension and snmp extension requires the spl extension.
1 parent 82c4db6 commit 41709ac

File tree

4 files changed

+4
-0
lines changed

4 files changed

+4
-0
lines changed

ext/mbstring/config.m4

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -178,4 +178,5 @@ if test "$PHP_MBSTRING" != "no"; then
178178
dnl libmbfl is required
179179
PHP_MBSTRING_SETUP_LIBMBFL
180180
PHP_MBSTRING_EXTENSION
181+
PHP_ADD_EXTENSION_DEP(mbstring, pcre)
181182
fi

ext/mbstring/config.w32

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ if (PHP_MBSTRING != "no") {
77

88
if (CHECK_HEADER_ADD_INCLUDE("mbstring.h", "CFLAGS_MBSTRING", PHP_MBSTRING + ";" + PHP_PHP_BUILD + "\\include")) {
99
EXTENSION("mbstring", "mbstring.c php_unicode.c mb_gpc.c", PHP_MBSTRING_SHARED);
10+
ADD_EXTENSION_DEP('mbstring', 'pcre');
1011

1112
STDOUT.WriteLine("Using bundled libmbfl...");
1213

ext/snmp/config.m4

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -87,5 +87,6 @@ if test "$PHP_SNMP" != "no"; then
8787
LIBS=$LIBS_SAVE
8888

8989
PHP_NEW_EXTENSION([snmp], [snmp.c], [$ext_shared])
90+
PHP_ADD_EXTENSION_DEP(snmp, spl)
9091
PHP_SUBST([SNMP_SHARED_LIBADD])
9192
fi

ext/snmp/config.w32

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ if (PHP_SNMP != "no") {
77
SETUP_OPENSSL("snmp", PHP_SNMP) >= 2) {
88
if (CHECK_LIB("netsnmp.lib", "snmp", PHP_SNMP)) {
99
EXTENSION('snmp', 'snmp.c');
10+
ADD_EXTENSION_DEP('snmp', 'spl');
1011
AC_DEFINE('HAVE_SNMP', 1, "Define to 1 if the PHP extension 'snmp' is available.");
1112
} else {
1213
WARNING("snmp not enabled; libraries and headers not found");

0 commit comments

Comments
 (0)