Bug #76356 [Com]: snmprealwalk does not return all results

From: Date: Wed, 10 May 2023 08:03:44 +0000
Subject: Bug #76356 [Com]: snmprealwalk does not return all results
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-244414@lists.php.net to get a copy of this message
Edit report at https://bugs.php.net/bug.php?id=76356&edit=1 ID: 76356 Comment by: tproductonline at gmail dot com Reported by: zerocarbthirty at gmail dot com Summary: snmprealwalk does not return all results Status: Open Type: Bug Package: SNMP related Operating System: Linux PHP Version: 7.2.5 Block user comment: N Private report: N New Comment: At topproductots from various categories, including electronics, fashion, beauty, home goods, and more. More info to visit:(https://topproductonline.com)github.com Previous Comments: ------------------------------------------------------------------------ [2018-05-18 23:16:35] zerocarbthirty at gmail dot com 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 this bug report at https://bugs.php.net/bug.php?id=76356&edit=1

« previous php.bugs (#244414) next »