ID:               37213
 User updated by:  marty at upbeatmms dot com
 Reported By:      marty at upbeatmms dot com
-Status:           Feedback
+Status:           Open
 Bug Type:         SNMP related
 Operating System: Windows 2000
 PHP Version:      5.1.2
 New Comment:

The array keys contain a numeric value starting at 0 that have no
relevance to the OID.


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

[2006-04-29 11:41:14] [EMAIL PROTECTED]

What's in the array keys?

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

[2006-04-26 19:33:23] marty at upbeatmms dot com

Description:
------------
In the following code below the OID is not displayed - just the data. 
The command line version of UCD-SNMP displays both the OID and Data. 



Reproduce code:
---------------
<?php
        snmp_set_quick_print(0);
        $a = snmpwalk("192.168.1.1", "Read",".1.3.6.1.2.1.17.4.3.1.1"); 

        foreach ($a as $val) {
        echo "$val\n<br>";
}

?> 

Expected result:
----------------
I excpect to see both the OID and the data

Actual result:
--------------
Just the data is displayed


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


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

Reply via email to