Bug #12081 Updated: A successfull snmpset() always returns "false"

From: Date: Fri, 13 Jul 2001 05:17:33 +0000
Subject: Bug #12081 Updated: A successfull snmpset() always returns "false"
References: 1  Groups: php.dev 
Request: Send a blank email to php-dev+get-59920@lists.php.net to get a copy of this message
ID: 12081 Updated by: rasmus Reported By: vesselin@bgnet.bg Old Summary: A successfull snmpset() always returns "false" Old Status: Open Status: Closed Bug Type: SNMP related Operating System: Slackware-7.1, kernel.2.4.6 PHP Version: 4.0.6 New Comment: Fixed in CVS Previous Comments: ------------------------------------------------------------------------ [2001-07-12 19:06:18] rasmus@php.net From looking at the code it would appear that snmpset() would return an empty array unless something goes wrong. Granted, that is sub-optimal, but I don't think it returns false. Could you verify this for me that it is actually an empty array and not false? ------------------------------------------------------------------------ [2001-07-12 02:31:47] vesselin@bgnet.bg I think the bug is in ext/snmp/snmp.c. php_snmp() initializes "return_value" only for snmp functions that return some MIB variable(s). It should "RETURN_TRUE" for snmpset too. ------------------------------------------------------------------------ Edit this bug report at http://bugs.php.net/?id=12081&edit=1

« previous php.dev (#59920) next »