php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Request #45395 snmpgetnext only returns value
Submitted: 2008-06-30 20:17 UTC Modified: 2011-01-31 13:01 UTC
Votes:3
Avg. Score:4.7 ± 0.5
Reproduced:3 of 3 (100.0%)
Same Version:2 (66.7%)
Same OS:1 (33.3%)
From: chrisohaver at gmail dot com Assigned: lytboris (profile)
Status: Wont fix Package: SNMP related
PHP Version: 5.2.6 OS: Linux
Private report: No CVE-ID: None
Have you experienced this issue?
Rate the importance of this bug to you:

 [2008-06-30 20:17 UTC] chrisohaver at gmail dot com
Description:
------------
snmpgetnext does not return the value and oid of the next object.

Reproduce code:
---------------
$snmp_response = snmpgetnext($hostname, $community, $object_id);

Expected result:
----------------
snmpgetnext should return the value and the oid of the next object.

Actual result:
--------------
snmpgetnext only returns the value of the next object.  The next oid is not returned.

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2011-01-23 21:32 UTC] jani@php.net
-Package: Feature/Change Request +Package: SNMP related
 [2011-01-31 13:01 UTC] lytboris@php.net
-Status: Open +Status: Wont fix -Assigned To: +Assigned To: lytboris
 [2011-01-31 13:01 UTC] lytboris@php.net
Value-only is the desired result.
If you need to get OID with it's value simultaneously you may try new OO API available in trunk:
$session->getnext(array($oid))
will return an associative array oid => value.
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Fri Apr 19 02:01:29 2024 UTC