|  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
Anyone can comment on a bug. Have a simpler test case? Does it work for you on a different platform? Let us know!
Just going to say 'Me too!'? Don't clutter the database with that please !
Your email address:
Solve the problem:
30 + 26 = ?
Subscribe to this entry?

 [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.


Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2001-07-12 19:06 UTC]
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]
Fixed in CVS
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Fri Jul 12 21:01:30 2024 UTC