Bug #74642 [NEW]: snmprealwalk resets oid output format

From: Date: Wed, 24 May 2017 10:00:24 +0000
Subject: Bug #74642 [NEW]: snmprealwalk resets oid output format
Groups: php.bugs 
Request: Send a blank email to php-bugs+get-209242@lists.php.net to get a copy of this message
From: mattias dot wallin at salanet dot se Operating system: Ubuntu 14.04 LTS PHP version: 7.0.19 Package: SNMP related Bug Type: Bug Bug description:snmprealwalk resets oid output format Description: ------------ snmprealwalk with non numeric object_id resets oid output format for current call, and future calls. Test script: --------------- <?php snmp_set_oid_output_format(SNMP_OID_OUTPUT_NUMERIC); print_r(snmprealwalk('1.2.3.4', 'public', '.1.3.6.1.2.1.17.2.15.1.3.1')); print_r(snmprealwalk('1.2.3.4', 'public', 'BRIDGE-MIB::dot1dStpPortState.1')); print_r(snmprealwalk('1.2.3.4', 'public', '.1.3.6.1.2.1.17.2.15.1.3.1')); ?> Expected result: ---------------- Array ( [.1.3.6.1.2.1.17.2.15.1.3.1] => INTEGER: 5 ) Array ( [.1.3.6.1.2.1.17.2.15.1.3.1] => INTEGER: 5 ) Array ( [.1.3.6.1.2.1.17.2.15.1.3.1] => INTEGER: 5 ) Actual result: -------------- Array ( [.1.3.6.1.2.1.17.2.15.1.3.1] => INTEGER: 5 ) Array ( [.1.3.6.1.2.1.17.2.15.1.3.1] => INTEGER: forwarding(5) ) Array ( [.1.3.6.1.2.1.17.2.15.1.3.1] => INTEGER: forwarding(5) ) -- Edit bug report at https://bugs.php.net/bug.php?id=74642&edit=1 -- Try a snapshot (PHP 5.4): https://bugs.php.net/fix.php?id=74642&r=trysnapshot54 Try a snapshot (PHP 5.5): https://bugs.php.net/fix.php?id=74642&r=trysnapshot55 Try a snapshot (trunk): https://bugs.php.net/fix.php?id=74642&r=trysnapshottrunk Fixed in SVN: https://bugs.php.net/fix.php?id=74642&r=fixed Fixed in release: https://bugs.php.net/fix.php?id=74642&r=alreadyfixed Need backtrace: https://bugs.php.net/fix.php?id=74642&r=needtrace Need Reproduce Script: https://bugs.php.net/fix.php?id=74642&r=needscript Try newer version: https://bugs.php.net/fix.php?id=74642&r=oldversion Not developer issue: https://bugs.php.net/fix.php?id=74642&r=support Expected behavior: https://bugs.php.net/fix.php?id=74642&r=notwrong Not enough info: https://bugs.php.net/fix.php?id=74642&r=notenoughinfo Submitted twice: https://bugs.php.net/fix.php?id=74642&r=submittedtwice register_globals: https://bugs.php.net/fix.php?id=74642&r=globals PHP 4 support discontinued: https://bugs.php.net/fix.php?id=74642&r=php4 Daylight Savings: https://bugs.php.net/fix.php?id=74642&r=dst IIS Stability: https://bugs.php.net/fix.php?id=74642&r=isapi Install GNU Sed: https://bugs.php.net/fix.php?id=74642&r=gnused Floating point limitations: https://bugs.php.net/fix.php?id=74642&r=float No Zend Extensions: https://bugs.php.net/fix.php?id=74642&r=nozend MySQL Configuration Error: https://bugs.php.net/fix.php?id=74642&r=mysqlcfg

« previous php.bugs (#209242) next »