ID: 12081 Updated by: rasmus Reported By: [EMAIL PROTECTED] 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] [EMAIL PROTECTED] >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] [EMAIL PROTECTED] 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 -- PHP Development Mailing List <http://www.php.net/> To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]