Edit report at https://bugs.php.net/bug.php?id=31772&edit=1
ID: 31772 Updated by: lytbo...@php.net Reported by: har...@php.net Summary: [PATCH] Net-SNMP 5.2.x ++ Workaround in PHP_SNMP Incorrectly Coded -Status: Feedback +Status: Closed Type: Feature/Change Request Package: SNMP related Operating System: Win32 PHP Version: 5.0.3 Assigned To: lytboris Block user comment: N Private report: N Previous Comments: ------------------------------------------------------------------------ [2011-08-21 07:03:54] lytbo...@php.net Please try using this snapshot: http://snaps.php.net/php5.4-latest.tar.gz For Windows: http://windows.php.net/snapshots/ Solved adding OO API ------------------------------------------------------------------------ [2005-03-16 14:02:29] har...@php.net Harrie, Per my e-mail, I have patch code that performs the exact thing. Only question to remain is do we want the default walk behavior to be "bulk" when performing snmpv2 calls? I would suggest that we hold off on "bulk" get's until a later date. Please let me know. Larry ------------------------------------------------------------------------ [2005-03-16 13:52:40] har...@php.net As for creating a set_version function this is not useful if in a single PHP script multiple SNMP versions are needed. This is not that unlikely if one wants to access more then one single SNMP agent. A better solution would be to setup a SNMP session and use this struct as the argument for SNMP retrieval functions. But since backwards compatibility seems an issue the solution of adding version specific functions is easier. Maybe even clearer to a user (PHP programmer). ------------------------------------------------------------------------ [2005-03-16 13:47:39] har...@php.net I do not see this patch as the correct solution. It duplicates the same function of parsing the SNMPv1 arguments with the exception of the version itself. Therefore, a proper solution would be to add a version parameter to the parsing of the SNMPv1 arguments and use that to configure the version. This avoids the duplicated code where the handling of SNMPv1 and SNMPv2c (both community based) are simply equal except the version number. ------------------------------------------------------------------------ [2005-03-06 20:39:11] LarryJAdams at comcast dot net I had the same question for Harrie (one of the authors) and he did not want to go that way. However, there is another workaround that was sent to me by another user that could be incorporated except for the "bulk" operations. Either way, this code works and the SNMPv3 is so different anyway, we can't go down to one function easily. ------------------------------------------------------------------------ The remainder of the comments for this report are too long. To view the rest of the comments, please view the bug report online at https://bugs.php.net/bug.php?id=31772 -- Edit this bug report at https://bugs.php.net/bug.php?id=31772&edit=1