From: brunoseys at telenet dot be Operating system: irrelevant PHP version: 6CVS-2007-09-22 (snap) PHP Bug Type: SNMP related Bug description: EXAMPLE 2251 TYPO (smptget)
Description: ------------ According the SNMPv2-MIB DEFINITIONS the right syntax should be "system.sysContact.0" and NOT "system.SysContact.0" as used is example 2251. SNMPv2-MIB DEFINITIONS ... sysContact OBJECT-TYPE SYNTAX DisplayString (SIZE (0..255)) MAX-ACCESS read-write STATUS current DESCRIPTION "The textual identification of the contact person for this managed node, together with information on how to contact this person. If no contact information is known, the value is the zero-length string." ::= { system 4 } Reproduce code: --------------- //example 2251. Using snmpget() <?php $syscontact = snmpget("127.0.0.1", "public", "system.SysContact.0"); ?> Expected result: ---------------- IRRELEVANT (system depending) Actual result: -------------- Warning: snmpget() [function.snmpget]: Invalid object identifier: system.SysContact.0 inC:\apachefriends\xampp\htdocs\edu\snmp_test.php on line 36 -- Edit bug report at http://bugs.php.net/?id=42732&edit=1 -- Try a CVS snapshot (PHP 4.4): http://bugs.php.net/fix.php?id=42732&r=trysnapshot44 Try a CVS snapshot (PHP 5.2): http://bugs.php.net/fix.php?id=42732&r=trysnapshot52 Try a CVS snapshot (PHP 6.0): http://bugs.php.net/fix.php?id=42732&r=trysnapshot60 Fixed in CVS: http://bugs.php.net/fix.php?id=42732&r=fixedcvs Fixed in release: http://bugs.php.net/fix.php?id=42732&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=42732&r=needtrace Need Reproduce Script: http://bugs.php.net/fix.php?id=42732&r=needscript Try newer version: http://bugs.php.net/fix.php?id=42732&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=42732&r=support Expected behavior: http://bugs.php.net/fix.php?id=42732&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=42732&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=42732&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=42732&r=globals PHP 3 support discontinued: http://bugs.php.net/fix.php?id=42732&r=php3 Daylight Savings: http://bugs.php.net/fix.php?id=42732&r=dst IIS Stability: http://bugs.php.net/fix.php?id=42732&r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=42732&r=gnused Floating point limitations: http://bugs.php.net/fix.php?id=42732&r=float No Zend Extensions: http://bugs.php.net/fix.php?id=42732&r=nozend MySQL Configuration Error: http://bugs.php.net/fix.php?id=42732&r=mysqlcfg