|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #35371 Wrong Values retriving Object with SNMP
Submitted: 2005-11-24 16:44 UTC Modified: 2005-12-22 01:00 UTC
From: matteo dot bertato at hiport dot it Assigned:
Status: No Feedback Package: SNMP related
PHP Version: 4.4.1 OS: Fedora Core 2,4
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 — but make sure to vote on the bug!
Your email address:
Solve the problem:
23 - 14 = ?
Subscribe to this entry?

 [2005-11-24 16:44 UTC] matteo dot bertato at hiport dot it
Retriving SNMP Object value in SNMP_VALUE_OBJECT mode,
give me wrong result, despite using default mode gives correct result.

(Tested with Net_SNMP on FC4)
(Tested with Net_SNMP 5.1.1 on FC2)
PHP compiled with --with-snmp --enable-ucd-snmp-hack

Reproduce code:
// Getting Mac Address of Second Network Interface
// This is a Standard MIB object

Expected result:
STRING: 0:50:e8:1:46:e6
stdClass Object
    [type] => 4
    [value] => 0:50:e8:1:46:e6

Actual result:
stdClass Object
    [type] => 4
    [value] => P?F?

STRING: 0:50:e8:1:46:e6


Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2005-12-14 06:30 UTC]
Please try using this CVS snapshot:
For Windows:

 [2005-12-22 01:00 UTC] php-bugs at lists dot php dot net
No feedback was provided for this bug for over a week, so it is
being suspended automatically. If you are able to provide the
information that was originally requested, please do so and change
the status of the bug back to "Open".
 [2005-12-30 16:58 UTC] larryjadams at comcast dot net

This problem can be fixed with a little function to convert HEX output to Ascii.  I have to use this today in some of my functions.  Not a big patch.
PHP Copyright © 2001-2023 The PHP Group
All rights reserved.
Last updated: Sun Apr 02 06:03:36 2023 UTC