ID:               30844
 User updated by:  steveh at brendata dot co dot uk
 Reported By:      steveh at brendata dot co dot uk
-Status:           Open
+Status:           Closed
 Bug Type:         SNMP related
 Operating System: linux 2.4.28
 PHP Version:      4.3.9
 New Comment:

Fixed in 4.3.10.


Previous Comments:
------------------------------------------------------------------------

[2004-11-19 21:20:09] steveh at brendata dot co dot uk

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.



------------------------------------------------------------------------


-- 
Edit this bug report at http://bugs.php.net/?id=30844&edit=1

Reply via email to