We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 99abcff commit 4912462Copy full SHA for 4912462
1 file changed
ext/snmp/snmp.c
@@ -1640,7 +1640,10 @@ PHP_FUNCTION(snmp_read_mib)
1640
/* {{{ Resets the MIB tree using the MIBDIRS, MIBS and MIBFILES environment variables. */
1641
PHP_FUNCTION(snmp_init_mib)
1642
{
1643
+ // Destroy the old MIB tree and set the internal MIB directory list to NULL
1644
shutdown_mib();
1645
+ netsnmp_ds_set_string(NETSNMP_DS_LIBRARY_ID, NETSNMP_DS_LIB_MIBDIRS, NULL);
1646
+ // Initialise the new MIB tree
1647
init_mib();
1648
}
1649
/* }}} */
0 commit comments