Bug #76356 [NEW]: snmprealwalk does not return all results
| From: | zerocarbthirty at gmail dot com | Date: | Fri, 18 May 2018 23:16:36 +0000 |
| Subject: | Bug #76356 [NEW]: snmprealwalk does not return all results | ||
| Groups: | php.bugs | ||
| Request: | Send a blank email to php-bugs+get-215299@lists.php.net to get a copy of this message | ||
From: zerocarbthirty at gmail dot com
Operating system: Linux
PHP version: 7.2.5
Package: SNMP related
Bug Type: Bug
Bug description:snmprealwalk does not return all results
Description:
------------
snmprealwalk in PHP 7.2.5 returns different results than snmpwalk as
well as the underlying system library (net-snmp)
Test script:
---------------
<?php
$vlannum = 732;
$switch = "192.168.1.2";
$physifary = snmprealwalk($switch, "public@$vlannum",
".1.3.6.1.2.1.17.4.3.1.2");
$physifaryz = snmpwalk($switch, "public@$vlannum",
".1.3.6.1.2.1.17.4.3.1.2");
var_dump($physifary);
var_dump($physifaryz);
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 192.168.1.2
.1.3.6.1.2.1.17.4.3.1.2 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" }
--
Edit bug report at https://bugs.php.net/bug.php?id=76356&edit=1
--
Try a snapshot (PHP 5.4): https://bugs.php.net/fix.php?id=76356&r=trysnapshot54
Try a snapshot (PHP 5.5): https://bugs.php.net/fix.php?id=76356&r=trysnapshot55
Try a snapshot (trunk): https://bugs.php.net/fix.php?id=76356&r=trysnapshottrunk
Fixed in SVN: https://bugs.php.net/fix.php?id=76356&r=fixed
Fixed in release: https://bugs.php.net/fix.php?id=76356&r=alreadyfixed
Need backtrace: https://bugs.php.net/fix.php?id=76356&r=needtrace
Need Reproduce Script: https://bugs.php.net/fix.php?id=76356&r=needscript
Try newer version: https://bugs.php.net/fix.php?id=76356&r=oldversion
Not developer issue: https://bugs.php.net/fix.php?id=76356&r=support
Expected behavior: https://bugs.php.net/fix.php?id=76356&r=notwrong
Not enough info: https://bugs.php.net/fix.php?id=76356&r=notenoughinfo
Submitted twice: https://bugs.php.net/fix.php?id=76356&r=submittedtwice
register_globals: https://bugs.php.net/fix.php?id=76356&r=globals
PHP 4 support discontinued: https://bugs.php.net/fix.php?id=76356&r=php4
Daylight Savings: https://bugs.php.net/fix.php?id=76356&r=dst
IIS Stability: https://bugs.php.net/fix.php?id=76356&r=isapi
Install GNU Sed: https://bugs.php.net/fix.php?id=76356&r=gnused
Floating point limitations: https://bugs.php.net/fix.php?id=76356&r=float
No Zend Extensions: https://bugs.php.net/fix.php?id=76356&r=nozend
MySQL Configuration Error: https://bugs.php.net/fix.php?id=76356&r=mysqlcfg