php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #13479 major resource leak
Submitted: 2001-09-28 10:57 UTC Modified: 2001-10-15 14:37 UTC
From: Padraig at linux dot ie Assigned:
Status: Closed Package: SNMP related
PHP Version: 4.0.6 OS:
Private report: No CVE-ID: None
View Add Comment Developer Edit
Anyone can comment on a bug. Have a simpler test case? Does it work for you on a different platform? Let us know!
Just going to say 'Me too!'? Don't clutter the database with that please !
Your email address:
MUST BE VALID
Solve the problem:
7 + 38 = ?
Subscribe to this entry?

 
 [2001-09-28 10:57 UTC] Padraig at linux dot ie
Before every RETURN_FALSE; you should snmp_clse(ss);
A diff against the latest /ext/snmp/snmp.c (1.51) is
available at:
http://www.iol.ie/~padraiga/snmp-1.51-snmpclose.diff
Note this happens a lot in my experience as there is
a lot of code that does:
while (snmpget(...))
{
   ....
}

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2001-10-15 14:37 UTC] ssb@php.net
Fixed in CVS.
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Tue Apr 23 18:01:34 2024 UTC