ID: 38516 Updated by: [EMAIL PROTECTED] Reported By: larryjadams at comcast dot net -Status: Open +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 backtrace to see what is happening behind the scenes. To find out how to generate a backtrace, please read http://bugs.php.net/bugs-generating-backtrace.php for *NIX and http://bugs.php.net/bugs-generating-backtrace-win32.php for Win32 Once you have generated a backtrace, please submit it to this bug report and change the status back to "Open". Thank you for helping us make PHP better. 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