#36196 [NEW]: SNMP_VALUE_PLAIN appears not to be working

From: Date: Sat, 28 Jan 2006 23:24:15 +0000
Subject: #36196 [NEW]: SNMP_VALUE_PLAIN appears not to be working
Groups: php.bugs 
Request: Send a blank email to php-bugs+get-92586@lists.php.net to get a copy of this message
From: pookey@php.net Operating system: gentoo linux PHP version: 5.1.2 PHP Bug Type: SNMP related Bug description: SNMP_VALUE_PLAIN appears not to be working Description: ------------ despite PHP and snmpwalk sharing the same library, they return different results for a query.... # ldd /usr/bin/snmpwalk | grep snmp libnetsnmp.so.5 => /usr/lib/libnetsnmp.so.5 (0xb7ee6000) # ldd /usr/bin/php | grep snmp libnetsnmp.so.5 => /usr/lib/libnetsnmp.so.5 (0xb7616000) Bug #29998 covers this, but was dismissed - I am left wondering how despite using the same library, results differ. According to the documentation, using the SNMP_VALUE_PLAIN should prevent the displayed behaviour. Sorry if I'm missing something. Reproduce code: --------------- # cat ./test.php <?php snmp_set_valueretrieval(SNMP_VALUE_PLAIN); echo snmpget('reboot1', 'public', '.1.3.6.1.2.1.2.2.1.6.1') . "\n"; Expected result: ---------------- # snmpwalk -v 1 -c public reboot2 .1.3.6.1.2.1.2.2.1.6.1 IF-MIB::ifPhysAddress.1 = STRING: 0:c0:b7:6a:c4:96 Actual result: -------------- # php ./test.php À·jG -- Edit bug report at http://bugs.php.net/?id=36196&edit=1 -- Try a CVS snapshot (PHP 4.4): http://bugs.php.net/fix.php?id=36196&r=trysnapshot44 Try a CVS snapshot (PHP 5.1): http://bugs.php.net/fix.php?id=36196&r=trysnapshot51 Try a CVS snapshot (PHP 6.0): http://bugs.php.net/fix.php?id=36196&r=trysnapshot60 Fixed in CVS: http://bugs.php.net/fix.php?id=36196&r=fixedcvs Fixed in release: http://bugs.php.net/fix.php?id=36196&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=36196&r=needtrace Need Reproduce Script: http://bugs.php.net/fix.php?id=36196&r=needscript Try newer version: http://bugs.php.net/fix.php?id=36196&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=36196&r=support Expected behavior: http://bugs.php.net/fix.php?id=36196&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=36196&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=36196&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=36196&r=globals PHP 3 support discontinued: http://bugs.php.net/fix.php?id=36196&r=php3 Daylight Savings: http://bugs.php.net/fix.php?id=36196&r=dst IIS Stability: http://bugs.php.net/fix.php?id=36196&r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=36196&r=gnused Floating point limitations: http://bugs.php.net/fix.php?id=36196&r=float No Zend Extensions: http://bugs.php.net/fix.php?id=36196&r=nozend MySQL Configuration Error: http://bugs.php.net/fix.php?id=36196&r=mysqlcfg

« previous php.bugs (#92586) next »