ID: 38516 Updated by: [EMAIL PROTECTED] Reported By: larryjadams at comcast dot net Status: Feedback Bug Type: SNMP related Operating System: Win32 PHP Version: 5.1.5 New Comment:
Thank you for this bug report. To properly diagnose the problem, we need a short but complete example script to be able to reproduce this bug ourselves. A proper reproducing script starts with <?php and ends with ?>, is max. 10-20 lines long and does not require any external resources such as databases, etc. If the script requires a database to demonstrate the issue, please make sure it creates all necessary tables, stored procedures etc. Please avoid embedding huge scripts into the report. Previous Comments: ------------------------------------------------------------------------ [2006-08-23 15:18:01] larryjadams at comcast dot net You are right, daddy needs a new pair of glasses. However, if you set the OID string to "", it still fails, while, if you run the following command from the command line it will still work: snmpgetnext -c public -v 1 localhost The php_snmp requires the OID to be something other than a blank string. ------------------------------------------------------------------------ [2006-08-23 12:27:42] metaur at telia dot com Wrong community string? (One of your examples say "public" and the other says "pubilc".) // Ulf Härnhammar ------------------------------------------------------------------------ [2006-08-20 03:08:20] larryjadams at comcast dot net Description: ------------ The snmpgetnext function does not work in the PHP distributions. This has been an issue for a while, but I am just getting around to publishing the bug. Sorry... Reproduce code: --------------- <?php print snmp2_getnext("localhost","pubilc",".1.3.6.1.2"); ?> or <?php print snmpgetnext("localhost","pubilc",".1.3.6.1.2"); ?> Expected result: ---------------- If you run the following command: snmpgetnext -v 1 -c public localhost you would get .1.3.6.1.2.1.1.1.0 = STRING: Hardware: x86 Family 6 Model 13 Stepping 8 AT/AT COMPATIBLE - Software: Windows 2000 Versio n 5.1 (Build 2600 Uniprocessor Free) Actual result: -------------- Warning: snmp2_getnext(): No response from localhost in C:\test.php on line 2 ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=38516&edit=1