note 88343 added to function.snmp-set-valueretrieval
| From: | doug dot manley at gmail dot com | Date: | Tue, 20 Jan 2009 21:04:59 +0000 |
| Subject: | note 88343 added to function.snmp-set-valueretrieval | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-149552@lists.php.net to get a copy of this message | ||
The default value (if this function is not called) is "SNMP_VALUE_LIBRARY", which seems to
be SNMP's built-in way of printing things.
From "snmp.c":
<code>
static PHP_GINIT_FUNCTION(snmp)
{
snmp_globals->valueretrieval = SNMP_VALUE_LIBRARY;
}
</code>
A mild description of these is:
SNMP_VALUE_LIBRARY: This is a string similar to:
"INTEGER: 42"
SNMP_VALUE_PLAIN: This is a string similar to:
"42"
SNMP_VALUE_OBJECT: This is a PHP object like:
object(
"type" => SNMP_INTEGER,
"value" => 42,
)
Here, "type" is one of the SNMP_* types that are listed under the "Predefined
Constants" page. In addition, types 128, 129, and 130 are error conditions.
----
Server IP: 64.71.164.2
Probable Submitter: 216.158.20.130
----
Manual Page -- http://www.php.net/manual/en/function.snmp-set-valueretrieval.php
Edit -- https://master.php.net/note/edit/88343
Del: integrated -- https://master.php.net/note/delete/88343/integrated
Del: useless -- https://master.php.net/note/delete/88343/useless
Del: bad code -- https://master.php.net/note/delete/88343/bad+code
Del: spam -- https://master.php.net/note/delete/88343/spam
Del: non-english -- https://master.php.net/note/delete/88343/non-english
Del: in docs -- https://master.php.net/note/delete/88343/in+docs
Del: other reasons-- https://master.php.net/note/delete/88343
Reject -- https://master.php.net/note/reject/88343
Search -- https://master.php.net/manage/user-notes.php