|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2017-06-10 23:58 UTC] php at mcq8 dot be
[2017-06-12 06:31 UTC] mattias dot wallin at salanet dot se
-Status: Open
+Status: Closed
[2017-06-12 06:31 UTC] mattias dot wallin at salanet dot se
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Sun Oct 26 11:00:02 2025 UTC |
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) )