From: foobar Date: Tue, 10 May 2005 11:21:19 +0000 (+0000) Subject: Revert the memleak fix due to net-snmp oddity (see also bug #32613) X-Git-Tag: php-4.4.0RC1~68 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=295719fa326af59714bb6d3a99db2fb077f231e2;p=php Revert the memleak fix due to net-snmp oddity (see also bug #32613) --- diff --git a/ext/snmp/php_snmp.h b/ext/snmp/php_snmp.h index da881b50e4..415ce03d41 100644 --- a/ext/snmp/php_snmp.h +++ b/ext/snmp/php_snmp.h @@ -39,7 +39,6 @@ extern zend_module_entry snmp_module_entry; #endif PHP_MINIT_FUNCTION(snmp); -PHP_MSHUTDOWN_FUNCTION(snmp); PHP_MINFO_FUNCTION(snmp); PHP_FUNCTION(snmpget); diff --git a/ext/snmp/snmp.c b/ext/snmp/snmp.c index 934da58e65..60c90c79ae 100644 --- a/ext/snmp/snmp.c +++ b/ext/snmp/snmp.c @@ -156,7 +156,7 @@ zend_module_entry snmp_module_entry = { "snmp", snmp_functions, PHP_MINIT(snmp), - PHP_MSHUTDOWN(snmp), + NULL, NULL, NULL, PHP_MINFO(snmp), @@ -208,16 +208,6 @@ PHP_MINIT_FUNCTION(snmp) } /* }}} */ -/* {{{ PHP_MSHUTDOWN_FUNCTION - */ -PHP_MSHUTDOWN_FUNCTION(snmp) -{ - snmp_shutdown("snmpapp"); - - return SUCCESS; -} -/* }}} */ - /* {{{ PHP_MINFO_FUNCTION */ PHP_MINFO_FUNCTION(snmp)