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 Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
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

Pull Requests

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: Thu Dec 26 22:01:28 2024 UTC