php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #29998 wrong output (autoconvert to string?)
Submitted: 2004-09-06 13:12 UTC Modified: 2006-01-29 01:21 UTC
From: admin at artem-catv dot ru Assigned:
Status: Not a bug Package: SNMP related
PHP Version: 4.3.9RC2 OS: Redhat Linux 9.0
Private report: No CVE-ID: None
View Add Comment Developer Edit
Anyone can comment on a bug. Have a simpler test case? Does it work for you on a different platform? Let us know!
Just going to say 'Me too!'? Don't clutter the database with that please !
Your email address:
MUST BE VALID
Solve the problem:
43 + 34 = ?
Subscribe to this entry?

 
 [2004-09-06 13:12 UTC] admin at artem-catv dot ru
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?

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2004-09-06 13:22 UTC] derick@php.net
Sorry, but your problem does not imply a bug in PHP itself.  For a
list of more appropriate places to ask for help using PHP, please
visit http://www.php.net/support.php as this bug system is not the
appropriate forum for asking support questions. 

Thank you for your interest in PHP.

.
 [2006-01-29 01:21 UTC] pookey@php.net
 
snmp_set_valueretrieval(SNMP_VALUE_LIBRARY); 
 
PHP Copyright © 2001-2020 The PHP Group
All rights reserved.
Last updated: Thu Jul 09 12:01:29 2020 UTC