|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2005-12-14 06:30 UTC] sniper@php.net
[2005-12-22 01:00 UTC] php-bugs at lists dot php dot net
[2005-12-30 16:58 UTC] larryjadams at comcast dot net
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Mon Dec 01 08:00:02 2025 UTC |
Description: ------------ Retriving SNMP Object value in SNMP_VALUE_OBJECT mode, give me wrong result, despite using default mode gives correct result. (Tested with Net_SNMP 5.2.1.2 on FC4) (Tested with Net_SNMP 5.1.1 on FC2) PHP compiled with --with-snmp --enable-ucd-snmp-hack Reproduce code: --------------- <?php print_R(snmpget('1.1.1.1', 'public','1.3.6.1.2.1.2.2.1.6.2')."\n"); snmp_set_valueretrieval(SNMP_VALUE_OBJECT); print_R(snmpget('1.1.1.1','public','1.3.6.1.2.1.2.2.1.6.2')); // Getting Mac Address of Second Network Interface // This is a Standard MIB object ?> Expected result: ---------------- STRING: 0:50:e8:1:46:e6 stdClass Object ( [type] => 4 [value] => 0:50:e8:1:46:e6 ) Actual result: -------------- stdClass Object ( [type] => 4 [value] => P?F? ) STRING: 0:50:e8:1:46:e6