From:             nospam-php at homeuseonly dot co dot uk
Operating system: Windows 2003 SP1 / Windows XP SP
PHP version:      5.0.4
PHP Bug Type:     SNMP related
Bug description:  SNMP timeouts on specific OIDs and truncating of certain OID 
return strings

Description:
------------
When running making specific SNMP get/walks against Windows 2003 or
Windows XP the following has been seen to occur

1.  Sometimes the SNMP walk against .1.3.6.1.2.1.25.2.3 the request times
out.  If I use GetIf to walk the OID the results are displayed, but PHP
fails randomly

2.  When viewing .1.3.6.1.2.1.25.4.2.1.4 with GetIf the file paths/names
are displayed in full, but when I do a SNMP walk the output is truncated.




Reproduce code:
---------------
The code can be downloaded from  http://sourceforge.net/users/lsms-mrtg/

The example windows code is in the package.

Example of the truncated output

<?php
print_R(snmpwalk("127.0.0.1","public", ".1.3.6.1.2.1.25.4.2.1.4"));

?>

Expected result:
----------------
The full program paths displayed, where appropriate.


Actual result:
--------------
Array ( [0] => "" [1] => "" [2] => "C:\\Program Files\\Promise Technology,
Inc.\\Promise Array Manageme" [3] => "" [4] => "" [5] =>
"C:\\users\\isms\\l" [6] => "" [7] => "C:\\WINDOWS\\System3" [8] =>
"C:\\users\\isms\\l" [9] => "\\SystemRoot\\System3" [10] => "" [11] =>
"c:\\squid\\sbi" [12] => "C:\\WINDOWS\\system3" [13] => "" [14] =>
"C:\\WINDOWS\\system3" [15] => "C:\\WINDOWS\\System3" [16] =>
"C:\\WINDOWS\\system3" [17] => "C:\\WINDOWS\\system3" [18] =>
"C:\\WINDOWS\\system3" [19] => "C:\\users\\isms\\l" [20] => "C:\\FS3" [21]
=> "" [22] => "" [23] => "" [24] => "" [25] => "C:\\WINDOWS\\System3" [26]
=> "C:\\WINDOWS\\system3" [27] => "C:\\WINDOWS\\system3" [28] => "" [29]
=> "C:\\Program Files\\TightVNC-unstabl" [30] =>
"C:\\PROGRA~1\\Grisoft\\AV" [31] => "C:\\users\\isms\\l" [32] =>
"C:\\Program Files\\Apache Group\\Apache2\\" [33] => "" [34] =>
"C:\\PROGRA~1\\Grisoft\\AV" [35] => "C:\\Program Files\\Promise
Technology, Inc\\Promise Array Manageme" [36] =>
"C:\\PROGRA~1\\Grisoft\\AV" [37] => "C:\\WINDOWS\\system3" [38] =>
"C:\\users\\isms\\l" [39] => "" [40] => "C:\\WINDOWS\\System3" [41] =>
"C:\\users\\isms\\l" [42] => "" [43] => "C:\\FS3" [44] =>
"C:\\users\\isms\\l" [45] => "" [46] => "C:\\Program Files\\Promise
Technology, Inc.\\Promise Array Manageme" [47] => "" [48] => "C:\\WINDOWS"
[49] => "" [50] => "C:\\PROGRA~1\\Grisoft\\AV" [51] => "C:\\WINDOWS" [52]
=> "C:\\Program Files\\ASUS\\Pro" [53] => "C:\\WINDOWS\\system3" [54] =>
"C:\\Program Files\\ATI Technologies\\ATI Control Pan" [55] => "" [56] =>
"" [57] => "C:\\WINDOWS\\system32\\wb" [58] => "C:\\Program Files\\Apache
Group\\Apache2\\" [59] => "C:\\FS3" [60] => "" [61] =>
"C:\\PROGRA~1\\HAUPPA~" [62] => "" [63] =>
"C:\\PROGRA~1\\HAUPPA~1\\Hardwa" [64] => "" [65] => "C:\\Program
Files\\Apache Group\\Apache2\\" [66] => "C:\\PROGRA~1\\HAUPPA~1\\Hardwa"
[67] => "" [68] => "C:\\WINDOWS\\system3" [69] => "" ) 

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

Reply via email to