Skip to content

Commit 57d6d71

Browse files
authored
ext/snmp: Enable shutdown_snmp_logging on Windows (#21685)
The shutdown_snmp_logging() function is available since Net-SNMP 5.4. At the time of writing, Windows uses Net-SNMP 5.9.4 https://github.com/winlibs/net-snmp
1 parent dc7f6a8 commit 57d6d71

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

ext/snmp/config.w32

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ if (PHP_SNMP != "no") {
99
EXTENSION('snmp', 'snmp.c');
1010
ADD_EXTENSION_DEP('snmp', 'spl');
1111
AC_DEFINE('HAVE_SNMP', 1, "Define to 1 if the PHP extension 'snmp' is available.");
12+
AC_DEFINE('HAVE_SHUTDOWN_SNMP_LOGGING', 1, "Define to 1 if SNMP library has the 'shutdown_snmp_logging' function.");
1213
} else {
1314
WARNING("snmp not enabled; libraries and headers not found");
1415
}

0 commit comments

Comments
 (0)