ID: 28534
User updated by: fsedano at hotmail dot com
Reported By: fsedano at hotmail dot com
-Status: Open
+Status: Bogus
Bug Type: SNMP related
Operating System: linux
-PHP Version: 4.3.4
+PHP Version: 4.3.3
New Comment:
-- Maybe a dup of 25636? I'll check.
Previous Comments:
------------------------------------------------------------------------
[2004-05-26 17:57:37] fsedano at hotmail dot com
Description:
------------
When making several snmp GETs, php leaks sockets each time.
Reproduce code:
---------------
for( $i=0;$i<4096;$i++ )
{
printf( "Iteracion %d: %s<p>",$i, snmpget( "10.129.1.38",
"public", ".1.3.6.1.2.1.1.1.0" ));
}
Expected result:
----------------
No limit in snmp get.
Actual result:
--------------
Iteracion 1012: Linux webmon 2.4.21-192-default #1 Wed Feb 18 19:26:28
UTC 2004 i686
Iteracion 1013: Linux webmon 2.4.21-192-default #1 Wed Feb 18 19:26:28
UTC 2004 i686
Warning: snmpget(): Could not open snmp connection: No socket (Too many
open files) in /srv/www/webmon/p1.php on line 5
Iteracion 1014:
Warning: snmpget(): Could not open snmp connection: No socket (Too many
open files) in /srv/www/webmon/p1.php on line 5
Iteracion 1015:
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=28534&edit=1