For Programmers: Free Programming Magazines  


Home > Archive > PHP Documentation > July 2006 > #37164 [Ver->Ana]: SNMP: snmp_set_oid_numeric_print does not behave as expected









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author #37164 [Ver->Ana]: SNMP: snmp_set_oid_numeric_print does not behave as expected
sniper@php.net

2006-07-27, 3:57 am

ID: 37164
Updated by: sniper@php.net
-Summary: snmp_set_oid_numeric_print does not behave as expected
Reported By: jorrit at ncode dot nl
-Status: Verified
+Status: Analyzed
-Bug Type: SNMP related
+Bug Type: Documentation problem
Operating System: Linux
PHP Version: 4.4.2
New Comment:

This has been taken care of in PHP 5.2 (to be released soon):
- Function was renamed to snmp_set_oid_output_format() which describes
what it does better (old name is still an alias!)
- Two new constants were added to be used as the parameters:
SNMP_OID_OUTPUT_FULL and SNMP_OID_OUTPUT_NUMERIC.

Reclassifying as documentation issue, the new function needs docs, and
I have no time to do that myself (no checkout of doc stuff either!)



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

[2006-04-22 11:11:00] jorrit at ncode dot nl

Description:
------------
The (undocumented) function snmp_set_oid_numeric_print doesn't behave
like expected. If you supply 1 as argument, the oids get returned
numerically, as expected, but there is no way to reverse this action,
although the function description suggests so (why would you need an
argument anyway?). If you look into the c code, you'll see that only
the case argument != 0 is handled.



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


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







Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive

Copyright 2008 codecomments.com