|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2004-12-29 15:26 UTC] steveh at brendata dot co dot uk
|
|||||||||||||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Sun Oct 26 08:00:02 2025 UTC |
Description: ------------ snmpget is failingto set the community string. snmpget from the command line works, but when called from php it fails. This is with net-snmp 5.2-rc4 (also tried rc2) tcpdump for the command line snmpget works as expected, but for the php one, the community string is shown as blank Reproduce code: --------------- snmp_set_quick_print(0); $snmp_value = snmpget("localhost", "public", ".1.3.6.1.2.1.1.1.0" , (500 * 1000), 3); Expected result: ---------------- tcpdump showing a community string set to "public" Actual result: -------------- tcpdump showing a 0 length community string (the dump showed 0x04 0x00 for the element.