From: ras at e-gerbil dot net
Operating system: FreeBSD 7.0-BETA3
PHP version: 5.2.5
PHP Bug Type: SNMP related
Bug description: snmp2_walk returns wrong value
Description:
------------
snmp2_walk() is occasionally (but consistently) returning the wrong value
for certain OIDs on certain devices. snmp2_real_walk(), snmp2_get, and
other external utilities all report the correct value.
Reproduce code:
---------------
$test1 = snmp2_get($dev, $comm, "ifHCInOctets.163");
$test2 = snmp2_real_walk($dev, $comm, "ifHCInOctets");
$test3 = snmp2_walk($dev, $comm, "ifHCInOctets");
$proof = snmp2_walk($dev, $comm, "ifIndex");
print "SNMP2_GET test: $test1\n";
print "SNMP2_REAL_WALK test:
{$test2['.1.3.6.1.2.1.31.1.1.1.6.163']}\n";
print "SNMP2_WALK test: {$test3[83]}\n";
print "Proof that I'm looking at the right ifindex:
{$proof[83]}\n";
Expected result:
----------------
I expect snmp2_walk() to return correct results. :)
Actual result:
--------------
SNMP2_GET test: 1280817516439889
SNMP2_REAL_WALK test: 1280817516439889
SNMP2_WALK test: 3545696399506456
Proof that I'm looking at the right ifindex: 163
--
Edit bug report at http://bugs.php.net/?id=43329&edit=1
--
Try a CVS snapshot (PHP 4.4):
http://bugs.php.net/fix.php?id=43329&r=trysnapshot44
Try a CVS snapshot (PHP 5.2):
http://bugs.php.net/fix.php?id=43329&r=trysnapshot52
Try a CVS snapshot (PHP 5.3):
http://bugs.php.net/fix.php?id=43329&r=trysnapshot53
Try a CVS snapshot (PHP 6.0):
http://bugs.php.net/fix.php?id=43329&r=trysnapshot60
Fixed in CVS: http://bugs.php.net/fix.php?id=43329&r=fixedcvs
Fixed in release:
http://bugs.php.net/fix.php?id=43329&r=alreadyfixed
Need backtrace: http://bugs.php.net/fix.php?id=43329&r=needtrace
Need Reproduce Script: http://bugs.php.net/fix.php?id=43329&r=needscript
Try newer version: http://bugs.php.net/fix.php?id=43329&r=oldversion
Not developer issue: http://bugs.php.net/fix.php?id=43329&r=support
Expected behavior: http://bugs.php.net/fix.php?id=43329&r=notwrong
Not enough info:
http://bugs.php.net/fix.php?id=43329&r=notenoughinfo
Submitted twice:
http://bugs.php.net/fix.php?id=43329&r=submittedtwice
register_globals: http://bugs.php.net/fix.php?id=43329&r=globals
PHP 3 support discontinued: http://bugs.php.net/fix.php?id=43329&r=php3
Daylight Savings: http://bugs.php.net/fix.php?id=43329&r=dst
IIS Stability: http://bugs.php.net/fix.php?id=43329&r=isapi
Install GNU Sed: http://bugs.php.net/fix.php?id=43329&r=gnused
Floating point limitations: http://bugs.php.net/fix.php?id=43329&r=float
No Zend Extensions: http://bugs.php.net/fix.php?id=43329&r=nozend
MySQL Configuration Error: http://bugs.php.net/fix.php?id=43329&r=mysqlcfg