|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #76356 snmprealwalk does not return all results
Submitted: 2018-05-18 23:16 UTC Modified: -
From: zerocarbthirty at gmail dot com Assigned:
Status: Open Package: SNMP related
PHP Version: 7.2.5 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.
Block user comment
Status: Assign to:
Bug Type:
From: zerocarbthirty at gmail dot com
New email:
PHP Version: OS:


 [2018-05-18 23:16 UTC] zerocarbthirty at gmail dot com
snmprealwalk in PHP 7.2.5 returns different results than snmpwalk as well as the underlying system library (net-snmp)

Test script:
$vlannum = 732;
$switch = "";
$physifary = snmprealwalk($switch, "public@$vlannum", ".");    
$physifaryz = snmpwalk($switch, "public@$vlannum", ".");    

Expected result:
Both arrays should contain the same information with different formatting.

This is what the Linux snmpwalk returns:

[meh@nessie html]# snmpwalk -v1 -c public@732 . BRIDGE-MIB::dot1dTpFdbPort.'......' = INTEGER: 800 BRIDGE-MIB::dot1dTpFdbPort.'......' = INTEGER: 1793

Actual result:
array(1) { ["BRIDGE-MIB::dot1dTpFdbPort.'......'"]=> string(13) "INTEGER: 1793" }

array(2) { [0]=> string(12) "INTEGER: 800" [1]=> string(13) "INTEGER: 1793" }


Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2023-05-10 08:03 UTC] tproductonline at gmail dot com
At topproductots from various categories, including electronics, fashion, beauty, home goods, and more. More info to visit:(
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Sat Apr 13 10:01:27 2024 UTC