php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #12081 A successfull snmpset() always returns "false"
Submitted: 2001-07-12 02:31 UTC Modified: 2001-07-13 01:17 UTC
From: vesselin at bgnet dot bg Assigned:
Status: Closed Package: SNMP related
PHP Version: 4.0.6 OS: Slackware-7.1, kernel.2.4.6
Private report: No CVE-ID: None
 [2001-07-12 02:31 UTC] vesselin at bgnet dot 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.

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2001-07-12 19:06 UTC] 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-13 01:17 UTC] rasmus@php.net
Fixed in CVS
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Sat Dec 21 12:01:31 2024 UTC