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
View Add Comment Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
(description)
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: vesselin at bgnet dot bg
New email:
PHP Version: OS:

 

 [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

Add a Patch

Pull Requests

Add a Pull Request

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-2019 The PHP Group
All rights reserved.
Last updated: Tue Jul 16 16:01:26 2019 UTC