#20857 [Opn->Fbk]: snmpset does not work
| From: | sniper@php.net | Date: | Sat, 07 Dec 2002 00:37:59 +0000 |
| Subject: | #20857 [Opn->Fbk]: snmpset does not work | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-26897@lists.php.net to get a copy of this message | ||
ID: 20857
Updated by: sniper@php.net
Reported By: rs@epost.de
-Status: Open
+Status: Feedback
Bug Type: SNMP related
Operating System: Linux RH 7.3
PHP Version: 4.3.0RC2
New Comment:
Do you have a patch for this?
Previous Comments:
------------------------------------------------------------------------
[2002-12-06 08:12:46] rs@epost.de
I use php-4.3.0RC2 with net-snmp-5.0.6. It works so far, but snmpset()
always shows a warning "Could not add variable: " and the variable is
not set.
I found out, that there is a bug in ext/snmp.c. Here, type and value of
the varible are not passed to php_snmp_internal(), so these variables
are always 0 and snmp_add_var() fails. So, as a solution, php_snmp and
php_snmpv3 should pass type and value to php_snmp_internal ant
everything is ok.
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=20857&edit=1