From 57d6d71c438f45c9e8b92e02e2d0fe2b20eb9f89 Mon Sep 17 00:00:00 2001 From: Peter Kokot Date: Thu, 9 Apr 2026 20:27:25 +0200 Subject: [PATCH] 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 --- ext/snmp/config.w32 | 1 + 1 file changed, 1 insertion(+) diff --git a/ext/snmp/config.w32 b/ext/snmp/config.w32 index 0e3887c0de68..bf63e89a9607 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"); }