From:             steveh at brendata dot co dot uk
Operating system: linux 2.4.28
PHP version:      4.3.9
PHP Bug Type:     SNMP related
Bug description:  tcpdump shows that snmpget is supplying blank community string

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 bug report at http://bugs.php.net/?id=30844&edit=1
-- 
Try a CVS snapshot (php4):   http://bugs.php.net/fix.php?id=30844&r=trysnapshot4
Try a CVS snapshot (php5.0): 
http://bugs.php.net/fix.php?id=30844&r=trysnapshot50
Try a CVS snapshot (php5.1): 
http://bugs.php.net/fix.php?id=30844&r=trysnapshot51
Fixed in CVS:                http://bugs.php.net/fix.php?id=30844&r=fixedcvs
Fixed in release:            http://bugs.php.net/fix.php?id=30844&r=alreadyfixed
Need backtrace:              http://bugs.php.net/fix.php?id=30844&r=needtrace
Need Reproduce Script:       http://bugs.php.net/fix.php?id=30844&r=needscript
Try newer version:           http://bugs.php.net/fix.php?id=30844&r=oldversion
Not developer issue:         http://bugs.php.net/fix.php?id=30844&r=support
Expected behavior:           http://bugs.php.net/fix.php?id=30844&r=notwrong
Not enough info:             
http://bugs.php.net/fix.php?id=30844&r=notenoughinfo
Submitted twice:             
http://bugs.php.net/fix.php?id=30844&r=submittedtwice
register_globals:            http://bugs.php.net/fix.php?id=30844&r=globals
PHP 3 support discontinued:  http://bugs.php.net/fix.php?id=30844&r=php3
Daylight Savings:            http://bugs.php.net/fix.php?id=30844&r=dst
IIS Stability:               http://bugs.php.net/fix.php?id=30844&r=isapi
Install GNU Sed:             http://bugs.php.net/fix.php?id=30844&r=gnused
Floating point limitations:  http://bugs.php.net/fix.php?id=30844&r=float
MySQL Configuration Error:   http://bugs.php.net/fix.php?id=30844&r=mysqlcfg

Reply via email to