|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2004-03-26 14:02 UTC] iliaa@php.net
[2004-04-01 11:55 UTC] iliaa@php.net
|
|||||||||||||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Sun Nov 02 05:00:01 2025 UTC |
Description: ------------ using snmpget(...) multiple times to monitor a snmp device will cause an error: Warning: snmpget(): Could not open snmp connection: Invalid local port in D:\Server\WWW\php\snmp\background2.php on line 20 This happens on php version 4.3.4 and 4.3.5RC2 This is propably because the snmpget doensnt close the socket after using and does not reuse it. Reproduce code: --------------- while(TRUE){ snmpget("192.168.1.1", "public", ".1.3.6.1.2.1.2.2.1.16.2"), " "); } Expected result: ---------------- simply run endlessly. Actual result: -------------- Wil give an error after using all sockets.