Commit 57d6d71c438 for php.net
commit 57d6d71c438f45c9e8b92e02e2d0fe2b20eb9f89
Author: Peter Kokot <peterkokot@gmail.com>
Date: Thu Apr 9 20:27:25 2026 +0200
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
diff --git a/ext/snmp/config.w32 b/ext/snmp/config.w32
index 0e3887c0de6..bf63e89a960 100644
--- a/ext/snmp/config.w32
+++ b/ext/snmp/config.w32
@@ -9,6 +9,7 @@ if (PHP_SNMP != "no") {
EXTENSION('snmp', 'snmp.c');
ADD_EXTENSION_DEP('snmp', 'spl');
AC_DEFINE('HAVE_SNMP', 1, "Define to 1 if the PHP extension 'snmp' is available.");
+ AC_DEFINE('HAVE_SHUTDOWN_SNMP_LOGGING', 1, "Define to 1 if SNMP library has the 'shutdown_snmp_logging' function.");
} else {
WARNING("snmp not enabled; libraries and headers not found");
}