From:             admin at artem-catv dot ru
Operating system: Redhat Linux 9.0
PHP version:      4.3.9RC2
PHP Bug Type:     SNMP related
Bug description:  wrong output (autoconvert to string?)

Description:
------------
When I try to output HEX string, returned by snmpget(), it outputs
converted string from that HEX.

Reproduce code:
---------------
snmp_set_valueretrieval(SNMP_VALUE_PLAIN);
$test = snmpget("10.10.10.10", "public", "1.3.6.1.2.1.10.127.1.3.3.1.2.1",
50);
echo $test;


Expected result:
----------------
00 00 CA 37 67 BB

Actual result:
--------------
Ê7g»

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

Reply via email to