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
View Add Comment Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
(description)
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: chrisohaver at gmail dot com
New email:
PHP Version: OS:

 

 [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-2018 The PHP Group
All rights reserved.
Last updated: Sun Nov 19 01:31:42 2017 UTC